Logo
Classes

BaseInMemoryKVStore

Defined in: packages/core/src/storage/kv-store/index.ts:26

Extends

Constructors

Constructor

new BaseInMemoryKVStore(): BaseInMemoryKVStore

Returns

BaseInMemoryKVStore

Inherited from

BaseKVStore.constructor

Methods

fromPersistPath()

static fromPersistPath(persistPath): BaseInMemoryKVStore

Defined in: packages/core/src/storage/kv-store/index.ts:28

Parameters

persistPath

string

Returns

BaseInMemoryKVStore


put()

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

Defined in: packages/core/src/storage/kv-store/index.ts:16

Parameters

key

string

val

StoredValue

collection?

string

Returns

Promise<void>

Inherited from

BaseKVStore.put


get()

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

Defined in: packages/core/src/storage/kv-store/index.ts:21

Parameters

key

string

collection?

string

Returns

Promise<StoredValue>

Inherited from

BaseKVStore.get


getAll()

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

Defined in: packages/core/src/storage/kv-store/index.ts:22

Parameters

collection?

string

Returns

Promise<Record<string, StoredValue>>

Inherited from

BaseKVStore.getAll


delete()

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

Defined in: packages/core/src/storage/kv-store/index.ts:23

Parameters

key

string

collection?

string

Returns

Promise<boolean>

Inherited from

BaseKVStore.delete


persist()

abstract persist(persistPath): void

Defined in: packages/core/src/storage/kv-store/index.ts:27

Parameters

persistPath

string

Returns

void