memory Key-Value Store driver¶
The memory driver stores key-value pairs in a transient, in-memory table.
It is useful for manipulating data in memory and for testing. It includes full
support for multi-key transactions.
- json kvstore/memory : object¶
Read/write, non-persistent in-memory storage.
JSON specification of the key-value store.
- 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
"/".
- memory_key_value_store : ContextResource¶
Specifies or references a previously defined
Context.memory_key_value_store.
-
atomic : boolean =
true¶ Support atomic multi-key transactions. If set to
false, the transaction behavior matches that of thekvstore/fileandkvstore/gcsdrivers, which may be useful for testing purposes.
- json Context.memory_key_value_store : object¶
Represents the in-memory key-value store. If multiple
kvstore/memoryspecifications reference the sameContext.memory_key_value_store, they all refer to the same in-memory set of key/value pairs.
- json KvStoreUrl/memory : string¶
memory://KvStore URL schemeIn-memory key-value stores may be specified using the custom
memory://pathURL syntax.Examples
URL representation
JSON representation
"memory://"{"driver": "memory"}"memory://path/to/dataset"{"driver": "memory", "path": "path/to/dataset"}- Extends:¶
KvStoreUrl— URL representation of a key-value store.