Przejdź do głównej zawartości

Class: BaseInMemoryKVStore

Hierarchy

Constructors

constructor

new BaseInMemoryKVStore()

Inherited from

BaseKVStore.constructor

Methods

delete

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

Parameters

NameType
keystring
collection?string

Returns

Promise<boolean>

Inherited from

BaseKVStore.delete

Defined in

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


get

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

Parameters

NameType
keystring
collection?string

Returns

Promise<StoredValue>

Inherited from

BaseKVStore.get

Defined in

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


getAll

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

Parameters

NameType
collection?string

Returns

Promise<Record<string, StoredValue>>

Inherited from

BaseKVStore.getAll

Defined in

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


persist

Abstract persist(persistPath, fs?): void

Parameters

NameType
persistPathstring
fs?GenericFileSystem

Returns

void

Defined in

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


put

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

Parameters

NameType
keystring
valRecord<string, any>
collection?string

Returns

Promise<void>

Inherited from

BaseKVStore.put

Defined in

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


fromPersistPath

Static fromPersistPath(persistPath): BaseInMemoryKVStore

Parameters

NameType
persistPathstring

Returns

BaseInMemoryKVStore

Defined in

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