Skip to main content

Class: ExperimentalMemKVStore

A named in-memory Store implementation.

Two (or more) named memory stores with the same name will share the same underlying storage. They will also share the same read/write locks, so that only one write transaction can be running at the same time.

This class is experimental and might be removed or changed in the future without following semver versioning. Please be cautious.

Implements​

Constructors​

constructor​

• new ExperimentalMemKVStore(name)

Parameters​

NameType
namestring

Accessors​

closed​

• get closed(): boolean

Returns​

boolean

Implementation of​

ExperimentalKVStore.closed

Methods​

close​

▸ close(): Promise<void>

Returns​

Promise<void>

Implementation of​

ExperimentalKVStore.close


read​

▸ read(): Promise<ExperimentalKVRead>

Returns​

Promise<ExperimentalKVRead>

Implementation of​

ExperimentalKVStore.read


write​

▸ write(): Promise<ExperimentalKVWrite>

Returns​

Promise<ExperimentalKVWrite>

Implementation of​

ExperimentalKVStore.write