Class: SimpleKVStore
Hierarchy
-
↳
SimpleKVStore
Constructors
constructor
• new SimpleKVStore(data?
)
Parameters
Name | Type |
---|---|
data? | DataType |
Overrides
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:14
Properties
data
• Private
data: DataType
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:10
fs
• Private
fs: undefined
| GenericFileSystem
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:12
persistPath
• Private
persistPath: undefined
| string
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:11
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:52
get
▸ get(key
, collection?
): Promise
<any
>
Parameters
Name | Type | Default value |
---|---|---|
key | string | undefined |
collection | string | DEFAULT_COLLECTION |
Returns
Promise
<any
>
Overrides
Defined in
packages/core/src/storage/kvStore/SimpleKVStore.ts:34