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 DelUserInfoNullKey

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

func DelUserLoginNullKey

func DelUserLoginNullKey(ctx context.Context, username string) error

func GetFavoriteStatus

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

func GetFollowState

func GetFollowState(ctx context.Context, uid, followUid 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 GetUserCounter

func GetUserCounter(ctx context.Context, uid int64) (*model.User, error)

func GetUserInfo

func GetUserInfo(ctx context.Context, uid int64) (*model.User, error)

func GetUserInfoNullKey

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

func GetUserLoginNullKey

func GetUserLoginNullKey(ctx context.Context, username string) 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 NewPublishInfo

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

func NewUserCounters

func NewUserCounters(ctx context.Context, users []*model.User) error

func NewUserInfoNullKey

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

func NewUserInfos

func NewUserInfos(ctx context.Context, users []*model.User, duration time.Duration) error

func NewUserLoginNullKey

func NewUserLoginNullKey(ctx context.Context, username string, duration time.Duration) 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