Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSetCodeTooMany = errors.New("发送验证码太频繁") ErrCodeVerifyTooManyTimes = errors.New("验证次数太多") ErrUnknowErrCode = errors.New("我也不知道发生什么,反正是和code有关") )
View Source
var ErrKeyNotExist = redis.Nil
Functions ¶
This section is empty.
Types ¶
type ArticleCache ¶
type CodeCache ¶
type CodeCache struct {
// contains filtered or unexported fields
}
func NewCodeCache ¶
type InteractiveCache ¶
type RedisArticleCache ¶
type RedisArticleCache struct {
// contains filtered or unexported fields
}
func NewRedisArticleCache ¶
func NewRedisArticleCache(r redis.Cmdable, l *zap.Logger) *RedisArticleCache
func (*RedisArticleCache) DeleteFirstPage ¶
func (ac *RedisArticleCache) DeleteFirstPage(ctx context.Context)
func (*RedisArticleCache) GetFirstPage ¶
func (*RedisArticleCache) SetFirstPage ¶
type RedisInteractiveCache ¶
type RedisInteractiveCache struct {
// contains filtered or unexported fields
}
func NewRedisInteractiveCache ¶
func NewRedisInteractiveCache(redis redis.Cmdable, logger *zap.Logger) *RedisInteractiveCache
func (*RedisInteractiveCache) IncreaseReadCountIfPresent ¶
type RedisUserCache ¶
type RedisUserCache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.