Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddCacheFrozen(c context.Context, mid int64, vipFrozenFlag int) (err error)
- func (d *Dao) AddCacheInfo(c context.Context, mid int64, v *model.VipUserInfo) (err error)
- func (d *Dao) AddCacheInfos(c context.Context, vs map[int64]*model.VipUserInfo) (err error)
- func (d *Dao) CacheInfo(c context.Context, mid int64) (v *model.VipUserInfo, err error)
- func (d *Dao) CacheInfos(c context.Context, mids []int64) (res map[int64]*model.VipUserInfo, err error)
- func (d *Dao) CacheVipFrozen(c context.Context, mid int64) (val int, err error)
- func (d *Dao) CacheVipFrozens(c context.Context, mids []int64) (res map[int64]int, err error)
- func (d *Dao) Close()
- func (d *Dao) DelInfoCache(c context.Context, mid int64) (err error)
- func (d *Dao) Info(c context.Context, id int64) (res *model.VipUserInfo, err error)
- func (d *Dao) Infos(c context.Context, keys []int64) (res map[int64]*model.VipUserInfo, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) RawInfo(c context.Context, mid int64) (r *model.VipUserInfo, err error)
- func (d *Dao) RawInfos(c context.Context, mids []int64) (res map[int64]*model.VipUserInfo, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao dao
func (*Dao) AddCacheFrozen ¶
AddCacheFrozen add cache frozen.
func (*Dao) AddCacheInfo ¶
AddCacheInfo add vip info cache.
func (*Dao) AddCacheInfos ¶
AddCacheInfos set account infos cache.
func (*Dao) CacheInfos ¶
func (d *Dao) CacheInfos(c context.Context, mids []int64) (res map[int64]*model.VipUserInfo, err error)
CacheInfos multi get account info from cache.
func (*Dao) CacheVipFrozen ¶
CacheVipFrozen get vip frozen flag.
func (*Dao) CacheVipFrozens ¶
CacheVipFrozens multi get vip frozens from cache.
func (*Dao) DelInfoCache ¶
DelInfoCache del vip info cache.
Click to show internal directories.
Click to hide internal directories.