Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisCache ¶
type RedisCache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(redis redis.Redis) *RedisCache
func NewTTLCache ¶
func NewTTLCache(redis redis.Redis, ttl time.Duration) *RedisCache
func (*RedisCache) Delete ¶
func (c *RedisCache) Delete(k interface{}) error
func (*RedisCache) Get ¶
func (c *RedisCache) Get(k interface{}) (interface{}, error)
func (*RedisCache) Put ¶
func (c *RedisCache) Put(k interface{}, v interface{}) error
Click to show internal directories.
Click to hide internal directories.