Pular para o conteúdo principal

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

Source

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


get()

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

Parameters

key: string

collection?: string

Returns

Promise<StoredValue>

Inherited from

BaseKVStore . get

Source

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


getAll()

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

Parameters

collection?: string

Returns

Promise<Record<string, StoredValue>>

Inherited from

BaseKVStore . getAll

Source

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


persist()

abstract persist(persistPath, fs?): void

Parameters

persistPath: string

fs?: GenericFileSystem

Returns

void

Source

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


put()

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

Parameters

key: string

val: Record<string, any>

collection?: string

Returns

Promise<void>

Inherited from

BaseKVStore . put

Source

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


fromPersistPath()

static fromPersistPath(persistPath): BaseInMemoryKVStore

Parameters

persistPath: string

Returns

BaseInMemoryKVStore

Source

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