kvstack Key-Value Store driver

The kvstack key value store composes multipple underlying kvstores into a composite kvstore view, where each base kvstore is mapped to a key ranges, prefix, or exact key files.

  • If the key ranges of the layers overlap, the last layer takes precedence.

json kvstore/kvstack : object

Stack (overlay) driver for key value store mapping.

JSON specification of the key-value store.

Extends:
  • KvStore — Key-value store specification.

Required members:
driver : "kvstack"
layers : array of object

Array of KvStore layer mappings

An ordered list of mappings from a key or range to a base kvstore driver.

Required members:
base : KvStore

Underlying key-value store.

Optional members:
prefix : string

Specifies a prefix mapping onto the base kvstore.

exact : string

Specifies an exact mapping onto the base kvstore.

inclusive_min : string

Specifies an inclusive lower bound of a range mapping onto the base kvstore.

exclusive_max : string

Specifies an exclusive upper bound of a range mapping onto the base kvstore.

strip_prefix : integer

Prefix to remove from the key mapping. Defaults to the common prefix of the range.

Optional members:
path : string

Key prefix within the key-value store.

If the prefix is intended to correspond to a Unix-style directory path, it should end with "/".

context : Context

Specifies context resources that augment/override the parent context.