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
Name | Type |
---|---|
name | string |
Accessors
closed
• get
closed(): boolean
Returns
boolean
Implementation of
Methods
close
▸ close(): Promise
<void
>
Returns
Promise
<void
>
Implementation of
read
▸ read(): Promise
<ExperimentalKVRead
>
Returns
Promise
<ExperimentalKVRead
>
Implementation of
write
▸ write(): Promise
<ExperimentalKVWrite
>
Returns
Promise
<ExperimentalKVWrite
>