انتقل إلى المحتوى الرئيسي

Class: BaseInMemoryKVStore

Hierarchy

Constructors

constructor

new BaseInMemoryKVStore(): BaseInMemoryKVStore

Returns

BaseInMemoryKVStore

Inherited from

BaseKVStore.constructor

Methods

delete

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

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

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

persist(persistPath, fs?): void

Parameters

NameType
persistPathstring
fs?GenericFileSystem

Returns

void

Defined in

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


put

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

fromPersistPath(persistPath): BaseInMemoryKVStore

Parameters

NameType
persistPathstring

Returns

BaseInMemoryKVStore

Defined in

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