Documentation
¶
Index ¶
- type Dao
- func (d *Dao) Close()
- func (d *Dao) Lock(ctx context.Context, key string, ttl int) (gotLock bool, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) PopMsgCache(c context.Context) (msg *message.Videoup, err error)
- func (d *Dao) PushMsgCache(c context.Context, msg *message.Videoup) (err error)
- func (d *Dao) UnLock(ctx context.Context, key string) (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 is redis dao.
func (*Dao) PopMsgCache ¶
PopMsgCache get databus message from redis
func (*Dao) PushMsgCache ¶
PushMsgCache add message into redis.
Click to show internal directories.
Click to hide internal directories.