package
0.0.0-20190115210254-6b20bf86751a
Repository: https://github.com/moomerman/go-lib.git
Documentation: pkg.go.dev

# README

kvstore

The kvstore package provides an interface for operations on a KV store with multiple implementations.

Documentation

Interface

type Store interface {
	Get(key string) ([]byte, error)
	Put(key string, data []byte) error
	Delete(key string) error
}

Implementations

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

GetLock attempts to get a lock for the key in the given store.
ReleaseLock releases the lock for the key in the given store.

# Variables

ErrCacheMiss is returned when a key is not found in the store.

# Interfaces

Store provides an interface for operations on a KV store.