跳转到内容

SimpleKVStore

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:35

new SimpleKVStore(data): SimpleKVStore

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:38

DataType = {}

SimpleKVStore

BaseKVStore.constructor

放置(key, val, collection): Promise<void>

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:42

string

StoredValue

string = DEFAULT_COLLECTION

Promise<void>

BaseKVStore.put


获取(key, collection): Promise<StoredValue>

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:57

string

string = DEFAULT_COLLECTION

Promise<StoredValue>

BaseKVStore.get


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

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:71

string = DEFAULT_COLLECTION

Promise<Record<string, StoredValue>>

BaseKVStore.getAll


delete(key, collection): Promise<boolean>

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:78

string

string = DEFAULT_COLLECTION

Promise<boolean>

BaseKVStore.delete


persist(persistPath): Promise<void>

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:92

string

Promise<void>


static fromPersistPath(persistPath, options?): Promise<SimpleKVStore>

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:101

string

Logger

Promise<SimpleKVStore>


toDict(): DataType

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:130

DataType


static fromDict(saveDict): SimpleKVStore

定义于:.build/typescript/packages/core/src/storage/kv-store/index.ts:134

DataType

SimpleKVStore