Skip to content

Releases: donnie4w/gdao

v1.2.2

18 Oct 12:21
Compare
Choose a tag to compare

version 1.2.2
Add BindExpireWriteClass , BindExpireWriteClassWithCacheHandle

增加写过期缓存,作用是:如果绑定结构体发生增删改操作,缓存数据将被清除
gdaoCache.BindExpireWriteClass[dao.Hstest]()
gdaoCache.BindExpireWriteClassWithCacheHandle[dao.Hstest](gdaoCache.NewCacheHandle().SetExpire(100).SetStoreMode(gdaoCache.STRONG))
gdaoCache.BindExpireWriteClass[dao.Hstest]()

//设置缓存数据
hs := dao.NewHstest()
hs.Where((hs.ID.Between(0, 2)).Or(hs.ID.Between(10, 15))).Selects()  

//获取缓存数据
hs := dao.NewHstest()
hs.Where((hs.ID.Between(0, 2)).Or(hs.ID.Between(10, 15))).Selects() 


hs = dao.NewHstest()
hs.OrderBy(hs.ID.Desc()).Limit(1)
hs, _ = hs.Select()
hs.Insert() //新增数据触发清除缓存操作

v1.2.1

08 Oct 09:27
Compare
Choose a tag to compare

version 1.2.1
optimization partial implementation

v1.2.0

27 Sep 02:24
Compare
Choose a tag to compare

version 1.2.0

v1.1.2

22 Sep 17:38
Compare
Choose a tag to compare

version1.1.2

v1.1.1

07 Sep 12:33
Compare
Choose a tag to compare

test version

v1.1.0

05 Aug 03:33
Compare
Choose a tag to compare

The following features are supported in this release

1. gdao Api

2. gdaoCache

3. gdaoSlave

4. gdaoMapper