Documentation
¶
Index ¶
- type Dao
- func (d *Dao) AddTrimQueueCache(c context.Context, tp int32, oid int64, trims []*model.Trim) (count int64, err error)
- func (d *Dao) DMHides(c context.Context, typ int32, oid, limit int64) (res []*model.DM, err error)
- func (d *Dao) DMInfos(c context.Context, tp int32, oid int64) (dms []*model.DM, err error)
- func (d *Dao) DelIdxContentCaches(c context.Context, typ int32, oid int64, dmids ...int64) (err error)
- func (d *Dao) DurationCache(c context.Context, oid int64) (duration int64, err error)
- func (d *Dao) ExpireTrimQueue(c context.Context, tp int32, oid int64) (ok bool, err error)
- func (d *Dao) FlushTrimCache(c context.Context, tp int32, oid int64, trims []*model.Trim) (err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SetDurationCache(c context.Context, oid, duration int64) (err error)
- func (d *Dao) SetSubjectCache(c context.Context, sub *model.Subject) (err error)
- func (d *Dao) Subject(c context.Context, tp int32, oid int64) (s *model.Subject, err error)
- func (d *Dao) SubjectCache(c context.Context, tp int32, oid int64) (sub *model.Subject, err error)
- func (d *Dao) TrimCache(c context.Context, tp int32, oid, count int64) (dmids []int64, err error)
- func (d *Dao) UpdateDM(c context.Context, m *model.DM) (affect int64, err error)
- func (d *Dao) UpdateDMStates(c context.Context, oid int64, dmids []int64, state int32) (affect int64, err error)
- func (d *Dao) ZRemTrimCache(c context.Context, tp int32, oid int64, dmID int64) (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 struct.
func (*Dao) AddTrimQueueCache ¶
func (d *Dao) AddTrimQueueCache(c context.Context, tp int32, oid int64, trims []*model.Trim) (count int64, err error)
AddTrimQueueCache add dm index into trim queue.
func (*Dao) DelIdxContentCaches ¶
func (d *Dao) DelIdxContentCaches(c context.Context, typ int32, oid int64, dmids ...int64) (err error)
DelIdxContentCaches del index content cache.
func (*Dao) DurationCache ¶
DurationCache return duration of video.
func (*Dao) ExpireTrimQueue ¶
ExpireTrimQueue set expire time of index.
func (*Dao) FlushTrimCache ¶
func (d *Dao) FlushTrimCache(c context.Context, tp int32, oid int64, trims []*model.Trim) (err error)
FlushTrimCache flush trim queue cache.
func (*Dao) SetDurationCache ¶
SetDurationCache set video duration to redis.
func (*Dao) SetSubjectCache ¶
SetSubjectCache add subject cache.
func (*Dao) SubjectCache ¶
SubjectCache get subject from memcache.
Click to show internal directories.
Click to hide internal directories.