Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is thrown when the key does not exist ErrNotFound = errors.New("not found") )
Functions ¶
This section is empty.
Types ¶
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
RedisStorage is a KV store
func (*RedisStorage) Del ¶
func (r *RedisStorage) Del(key string) error
Del deletes a key from the store
func (*RedisStorage) Get ¶
func (r *RedisStorage) Get(key string) (string, error)
Get fetches a value from the store
func (*RedisStorage) Set ¶
func (r *RedisStorage) Set(key, value string) error
Set set's a key to a given value
Click to show internal directories.
Click to hide internal directories.