Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Add(ctx context.Context, mid, aid, now int64) (err error)
- func (d *Dao) AddCache(c context.Context, mid, aid, now int64) error
- func (d *Dao) AddCacheList(c context.Context, mid int64, views []*model.ToView) error
- func (d *Dao) AddMap(ctx context.Context, mid int64, views map[int64]*model.ToView) (err error)
- func (d *Dao) Adds(ctx context.Context, mid int64, aids []int64, now int64) (err error)
- func (d *Dao) Cache(c context.Context, mid int64, start, end int) (res []*model.ToView, err error)
- func (d *Dao) CacheMap(c context.Context, mid int64) (res map[int64]*model.ToView, err error)
- func (d *Dao) Clear(ctx context.Context, mid int64) (err error)
- func (d *Dao) ClearCache(c context.Context, mid int64) (err error)
- func (d *Dao) Close()
- func (d *Dao) CntCache(c context.Context, mid int64) (count int, err error)
- func (d *Dao) Del(ctx context.Context, mid int64, aids []int64) (err error)
- func (d *Dao) DelCaches(c context.Context, mid int64, aids []int64) (err error)
- func (d *Dao) Expire(c context.Context, mid int64) (ok bool, err error)
- func (d *Dao) ListInfo(ctx context.Context, mid int64, aids []int64) (res []*model.ToView, err error)
- func (d *Dao) MapInfo(ctx context.Context, mid int64, aids []int64) (res map[int64]*model.ToView, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) PingRedis(c context.Context) (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) AddCacheList ¶
AddCacheList add user toview to redis.
func (*Dao) ClearCache ¶
ClearCache delete the user toview redis.
func (*Dao) ListInfo ¶
func (d *Dao) ListInfo(ctx context.Context, mid int64, aids []int64) (res []*model.ToView, err error)
ListInfo get all ToViews from hbase.
Click to show internal directories.
Click to hide internal directories.