Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ExpireRangeMin is the minimum expire time ExpireRangeMin = 40 * time.Minute // ExpireRangeMax is the maximum expire time ExpireRangeMax = 60 * time.Minute )
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct { *redis.Client // contains filtered or unexported fields }
RedisCache is a redis cache
func CreateRedisCache ¶
func CreateRedisCache(logger *zap.Logger, client *redis.Client) *RedisCache
CreateRedisCache creates a redis cache
func (*RedisCache) DeleteCache ¶
func (c *RedisCache) DeleteCache(key key.Key)
DeleteCache deletes cache
Click to show internal directories.
Click to hide internal directories.