Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotExist = errors.New("key does not exist")
ErrKeyNotExist is returned when a key doesn't exist
Functions ¶
This section is empty.
Types ¶
type KeyValueStore ¶
type KeyValueStore interface { Set(key string, value string) error Get(key string) (string, error) Delete(key string) error }
KeyValueStore defines the interface to access the key value store
func NewRedis ¶
func NewRedis(redisClient *redis.Client) KeyValueStore
NewRedis returns the Redis implementation of Client
Click to show internal directories.
Click to hide internal directories.