cache

package
v0.0.0-...-671c73a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPublishInfo

func AddPublishInfo(ctx context.Context, uid, vid int64) error

func AddPublishInfoNullKey

func AddPublishInfoNullKey(ctx context.Context, uid int64, duration time.Duration) error

func DelPublishInfoNullKey

func DelPublishInfoNullKey(ctx context.Context, uid int64) error

func GetFavoriteStatus

func GetFavoriteStatus(ctx context.Context, uid, vid int64) (bool, error)

func GetPublishInfo

func GetPublishInfo(ctx context.Context, uid int64) ([]int64, error)

func GetPublishInfoNullKey

func GetPublishInfoNullKey(ctx context.Context, uid int64) error

func GetUserInfoNullKey

func GetUserInfoNullKey(ctx context.Context, uid int64) error

func GetVideoCounter

func GetVideoCounter(ctx context.Context, vid int64) (*model.Video, error)

func GetVideoInfo

func GetVideoInfo(ctx context.Context, vid int64) (*model.Video, error)

func IncrWorkCount

func IncrWorkCount(ctx context.Context, uid int64) error

func NewPublishInfo

func NewPublishInfo(ctx context.Context, uid int64, vidList []int64) error

func NewVideoCounters

func NewVideoCounters(ctx context.Context, videos []*model.Video) error

func NewVideoInfos

func NewVideoInfos(ctx context.Context, videos []*model.Video, duration time.Duration) error

func PushVideoQueue

func PushVideoQueue(ctx context.Context, vid int64, maxCap int64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL