Skip to main content

Class: abstract BaseInMemoryKVStore

Extends

Constructors

new BaseInMemoryKVStore()

new BaseInMemoryKVStore(): BaseInMemoryKVStore

Returns

BaseInMemoryKVStore

Inherited from

BaseKVStore.constructor

Methods

delete()

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

Parameters

key: string

collection?: string

Returns

Promise<boolean>

Inherited from

BaseKVStore.delete

Defined in

packages/core/storage/kv-store/dist/index.d.ts:7


get()

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

Parameters

key: string

collection?: string

Returns

Promise<StoredValue>

Inherited from

BaseKVStore.get

Defined in

packages/core/storage/kv-store/dist/index.d.ts:5


getAll()

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

Parameters

collection?: string

Returns

Promise<Record<string, StoredValue>>

Inherited from

BaseKVStore.getAll

Defined in

packages/core/storage/kv-store/dist/index.d.ts:6


persist()

abstract persist(persistPath): void

Parameters

persistPath: string

Returns

void

Defined in

packages/core/storage/kv-store/dist/index.d.ts:10


put()

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

Parameters

key: string

val: StoredValue

collection?: string

Returns

Promise<void>

Inherited from

BaseKVStore.put

Defined in

packages/core/storage/kv-store/dist/index.d.ts:4


fromPersistPath()

static fromPersistPath(persistPath): BaseInMemoryKVStore

Parameters

persistPath: string

Returns

BaseInMemoryKVStore

Defined in

packages/core/storage/kv-store/dist/index.d.ts:11