Documentation ¶
Index ¶
- func NewCache(addr string) (repository.Repository, error)
- type RedisStorage
- func (rs *RedisStorage) Exists(key string) (bool, error)
- func (rs *RedisStorage) Get(key string) (string, error)
- func (rs *RedisStorage) HExists(key, field string) (bool, error)
- func (rs *RedisStorage) HGet(hash, key string) (string, error)
- func (rs *RedisStorage) HSet(hash, key, value string) error
- func (rs *RedisStorage) Set(key string, value string) error
- func (rs *RedisStorage) SetWithTTL(key, value string, expiration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCache ¶
func NewCache(addr string) (repository.Repository, error)
Types ¶
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
func (*RedisStorage) HSet ¶
func (rs *RedisStorage) HSet(hash, key, value string) error
func (*RedisStorage) SetWithTTL ¶
func (rs *RedisStorage) SetWithTTL( key, value string, expiration time.Duration, ) error
Click to show internal directories.
Click to hide internal directories.