Documentation
¶
Overview ¶
Cache access
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ArticleCache ¶
type ArticleCache interface { GetFirstPage(ctx context.Context, uid int64) ([]domain.Article, error) SetFirstPage(ctx context.Context, uid int64, articles []domain.Article) error DelFirstPage(ctx context.Context, uid int64) error Get(ctx context.Context, id int64) (domain.Article, error) Set(ctx context.Context, article domain.Article) error GetPub(ctx context.Context, id int64) (domain.Article, error) SetPub(ctx context.Context, article domain.Article) error BatchGetPub(ctx context.Context, ids []int64) ([]domain.Article, error) BatchSetPub(ctx context.Context, articles []domain.Article) error }
type BaseArticleCache ¶
type BaseArticleCache struct{}
type BaseCodeCache ¶
type BaseCodeCache struct{}
func (*BaseCodeCache) Key ¶
func (b *BaseCodeCache) Key(biz, phone string) string
type BaseInteractiveCache ¶
type BaseInteractiveCache struct{}
type BaseRankingCache ¶
type BaseRankingCache struct{}
func (*BaseRankingCache) Key ¶
func (c *BaseRankingCache) Key(biz string) string
type BaseUserCache ¶
type BaseUserCache struct{}
func (*BaseUserCache) Key ¶
func (c *BaseUserCache) Key(uid int64) string
type RankingCache ¶
Click to show internal directories.
Click to hide internal directories.