Documentation ¶
Index ¶
- type InMemoryStorageI
- type RedisRepo
- func (r *RedisRepo) Del(key string) (interface{}, error)
- func (r *RedisRepo) Exists(key string) (interface{}, error)
- func (r *RedisRepo) Get(key string) (interface{}, error)
- func (r *RedisRepo) Keys(pattern string) (interface{}, error)
- func (r *RedisRepo) Set(key, value string) error
- func (r *RedisRepo) SetWithTTL(key, value string, seconds int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryStorageI ¶
type InMemoryStorageI interface { Set(key, value string) error SetWithTTL(key, value string, seconds int) error Get(key string) (interface{}, error) Exists(key string) (interface{}, error) Del(key string) (interface{}, error) Keys(pattern string) (interface{}, error) }
func NewRedisRepo ¶
func NewRedisRepo(rds *redis.Pool) InMemoryStorageI
Click to show internal directories.
Click to hide internal directories.