Class: SimpleKVStore
Hierarchy
-
↳
SimpleKVStore
Constructors
constructor
• new SimpleKVStore(data?
): SimpleKVStore
Parameters
Name | Type |
---|---|
data | DataType |
Returns
Overrides
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:13
Properties
data
• Private
data: DataType
= {}
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:13
fs
• Private
fs: undefined
| GenericFileSystem
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:11
persistPath
• Private
persistPath: undefined
| string
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:10
Methods
delete
▸ delete(key
, collection?
): Promise
<boolean
>
Parameters
Name | Type | Default value |
---|---|---|
key | string | undefined |
collection | string | DEFAULT_COLLECTION |
Returns
Promise
<boolean
>
Overrides
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:50
get
▸ get(key
, collection?
): Promise
<any
>