type Reader interface {
// Get looks for the value of a given key. Will return nil if the value does not exist Get(key []byte) ([]byte, error)
PrefixedIterator(keyPrefix []byte) Iterator Iterator() Iterator Close() error}
type Writer interface {
// Set writes the given key:value pair with an optional expiry Set(key []byte, value []byte, expiry time.Duration) error Delete(key []byte) error DeleteAll() error Flush() error Close() error}