Search
Preparing search index...
The search index is not available
interface-datastore - v4.0.2
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
interface-datastore - v4.0.2
MemoryDatastore
Class MemoryDatastore
implements
{Datastore}
Hierarchy
Adapter
MemoryDatastore
Index
Constructors
constructor
Properties
data
Methods
_all
_all
Keys
batch
close
delete
delete
Many
get
get
Many
has
open
put
put
Many
query
query
Keys
Constructors
constructor
new
Memory
Datastore
(
)
:
MemoryDatastore
Returns
MemoryDatastore
Properties
data
data
:
Record
<
string
,
Uint8Array
>
Methods
_all
_all
(
)
:
AsyncGenerator
<
{
key
:
Key
;
value
:
Uint8Array
}
,
void
,
undefined
>
Returns
AsyncGenerator
<
{
key
:
Key
;
value
:
Uint8Array
}
,
void
,
undefined
>
_all
Keys
_all
Keys
(
)
:
AsyncGenerator
<
Key
,
void
,
undefined
>
Returns
AsyncGenerator
<
Key
,
void
,
undefined
>
batch
batch
(
)
:
Batch
Returns
Batch
close
close
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
delete
delete
(
key
:
Key
)
:
Promise
<
void
>
Parameters
key:
Key
Returns
Promise
<
void
>
delete
Many
delete
Many
(
source
:
AwaitIterable
<
Key
>
, options
?:
undefined
|
Options
)
:
AsyncIterable
<
Key
>
Parameters
source:
AwaitIterable
<
Key
>
options:
undefined
|
Options
= {}
Returns
AsyncIterable
<
Key
>
get
get
(
key
:
Key
)
:
Promise
<
Uint8Array
>
Parameters
key:
Key
Returns
Promise
<
Uint8Array
>
get
Many
get
Many
(
source
:
AwaitIterable
<
Key
>
, options
?:
undefined
|
Options
)
:
AsyncIterable
<
Uint8Array
>
Parameters
source:
AwaitIterable
<
Key
>
options:
undefined
|
Options
= {}
Returns
AsyncIterable
<
Uint8Array
>
has
has
(
key
:
Key
)
:
Promise
<
boolean
>
Parameters
key:
Key
Returns
Promise
<
boolean
>
open
open
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
put
put
(
key
:
Key
, val
:
Uint8Array
)
:
Promise
<
void
>
Parameters
key:
Key
val:
Uint8Array
Returns
Promise
<
void
>
put
Many
put
Many
(
source
:
AwaitIterable
<
Pair
>
, options
?:
undefined
|
Options
)
:
AsyncIterable
<
Pair
>
Parameters
source:
AwaitIterable
<
Pair
>
options:
undefined
|
Options
= {}
Returns
AsyncIterable
<
Pair
>
query
query
(
q
:
Query
, options
:
undefined
|
Options
)
:
AsyncIterable
<
Pair
>
Parameters
q:
Query
options:
undefined
|
Options
Returns
AsyncIterable
<
Pair
>
query
Keys
query
Keys
(
q
:
KeyQuery
, options
:
undefined
|
Options
)
:
AsyncIterable
<
Key
>
Parameters
q:
KeyQuery
options:
undefined
|
Options
Returns
AsyncIterable
<
Key
>
Exports
Adapter
Key
Memory
Datastore
constructor
data
_all
_all
Keys
batch
close
delete
delete
Many
get
get
Many
has
open
put
put
Many
query
query
Keys
Batch
Datastore
Key
Query
Key
Query
Filter
Key
Query
Order
Options
Pair
Query
Query
Filter
Query
Order
utils
{Datastore}