keyvaluestore

package
v0.0.0-...-b258b02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL