Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyNotExist = errors.New("key not exist")
Functions ¶
func InitKvStore ¶
func InitKvStore(cfg config.StoreConfig) (err error)
Types ¶
type KVStore ¶
type KVStore interface { Set(ctx context.Context, key string, value []byte) error Get(ctx context.Context, key string) ([]byte, error) Delete(ctx context.Context, key string) error Close() error }
func GetKVStore ¶
func GetKVStore() KVStore
func NewFileStore ¶
func NewMemoryStore ¶
func NewMemoryStore() KVStore
Click to show internal directories.
Click to hide internal directories.