Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key doesn't exist")
ErrKeyNotFound says that `key doesn't exist`
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
RedisCache implements cache for redis
func NewRedisCache ¶
func NewRedisCache(redis *redis.Client) RedisCache
NewRedisCache returns new RedisCache
func (*RedisCache) ClearByTag ¶
func (m *RedisCache) ClearByTag(tag string) error
ClearByTag deletes all keys that have the specified tag
Click to show internal directories.
Click to hide internal directories.