Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotExist = errors.New("inexisted key")
Functions ¶
This section is empty.
Types ¶
type BaseInteractiveCache ¶
type BaseInteractiveCache struct{}
type InteractiveCache ¶
type InteractiveCache interface { IncrReadCntIfPresent(ctx context.Context, biz string, bizID int64) error IncrLikeCntIfPresent(ctx context.Context, biz string, bizID int64) error DecrLikeCntIfPresent(ctx context.Context, biz string, bizID int64) error IncrCollectCntIfPresent(ctx context.Context, biz string, bizID int64) error DecrCollectCntIfPresent(ctx context.Context, biz string, bizID int64) error Get(ctx context.Context, biz string, bizID int64) (domain.Interactive, error) Set(ctx context.Context, biz string, bizID int64, intr domain.Interactive) error MustBatchGet(ctx context.Context, biz string, bizIDs []int64) ([]domain.Interactive, error) BatchSet(ctx context.Context, biz string, bizIDs []int64, intr []domain.Interactive) error GetTopLikedIDs(ctx context.Context, biz string, limit int64) ([]int64, error) SetLikeToZSET(ctx context.Context, biz string, bizId int64, likeCnt int64) error IncrLikeRank(ctx context.Context, biz string, bizID int64) error DecrLikeRank(ctx context.Context, biz string, bizID int64) error }
Directories
¶
Path | Synopsis |
---|---|
Package intrcachemocks is a generated GoMock package.
|
Package intrcachemocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.