Saltar al contenido principal

Class: BaseKVStore

Hierarchy

Constructors

constructor

new BaseKVStore(): BaseKVStore

Returns

BaseKVStore

Methods

delete

delete(key, collection?): Promise<boolean>

Parameters

NameType
keystring
collection?string

Returns

Promise<boolean>

Defined in

packages/core/src/storage/kvStore/types.ts:14


get

get(key, collection?): Promise<StoredValue>

Parameters

NameType
keystring
collection?string

Returns

Promise<StoredValue>

Defined in

packages/core/src/storage/kvStore/types.ts:12


getAll

getAll(collection?): Promise<Record<string, StoredValue>>

Parameters

NameType
collection?string

Returns

Promise<Record<string, StoredValue>>

Defined in

packages/core/src/storage/kvStore/types.ts:13


put

put(key, val, collection?): Promise<void>

Parameters

NameType
keystring
valRecord<string, any>
collection?string

Returns

Promise<void>

Defined in

packages/core/src/storage/kvStore/types.ts:7