package
0.13.8
Repository: https://github.com/creachadair/ffs.git
Documentation: pkg.go.dev

# Packages

Package memstore implements the [blob.Store] and [blob.KV] interfaces using in-memory dictionaries.
Package storetest provides correctness tests for implementations of the [blob.KV] interface.

# Functions

CASFromKV converts a [KV] into a [CAS].
CASFromKVError converts a [KV] into a [CAS].
IsKeyExists reports whether err is or wraps ErrKeyExists.
IsKeyNotFound reports whether err or is or wraps ErrKeyNotFound.
KeyExists returns an ErrKeyExists error reporting that key exists in the store.
KeyNotFound returns an ErrKeyNotFound error reporting that key was not found.
SyncKeys reports which of the given keys are not present in the key space.

# Variables

ErrKeyExists is reported by Put when writing a key that already exists in the store.
ErrKeyNotFound is reported by Get or Size when given a key that does not exist in the store.

# Structs

KeyError is the concrete type of errors involving a blob key.
PutOptions regulate the behaviour of the Put method of a [KV] implementation.

# Interfaces

CAS represents a mutable set of content-addressed key-value pairs in which each value is identified by a unique, opaque string key.
Closer is an extension interface representing the ability to close and release resources claimed by a storage component.
A KV represents a mutable set of key-value pairs in which each value is identified by a unique, opaque string key.
KVCore is the common interface shared by implementations of a key-value namespace.
A Store represents a collection of key-value namespaces ("keyspaces") identified by string labels.
StoreCloser combines a [Store] with a Close method that settles state and releases any resources from the store when it is no longer in use.