Class: SimpleKVStore
Extends
Constructors
new SimpleKVStore()
new SimpleKVStore(
data
):SimpleKVStore
Parameters
• data: DataType
= {}
Returns
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:11
Methods
delete()
delete(
key
,collection
):Promise
<boolean
>
Parameters
• key: string
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<boolean
>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:52
get()
get(
key
,collection
):Promise
<StoredValue
>
Parameters
• key: string
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<StoredValue
>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:30
getAll()
getAll(
collection
):Promise
<Record
<string
,StoredValue
>>
Parameters
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<Record
<string
, StoredValue
>>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:44
persist()
persist(
persistPath
):Promise
<void
>
Parameters
• persistPath: string
Returns
Promise
<void
>
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:66
put()
put(
key
,val
,collection
):Promise
<void
>
Parameters
• key: string
• val: StoredValue
• collection: string
= DEFAULT_COLLECTION
Returns
Promise
<void
>
Overrides
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:15
toDict()
toDict():
DataType
Returns
DataType
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:96
fromDict()
static
fromDict(saveDict
):SimpleKVStore
Parameters
• saveDict: DataType
Returns
Defined in
packages/llamaindex/src/storage/kvStore/SimpleKVStore.ts:100
fromPersistPath()
static
fromPersistPath(persistPath
):Promise
<SimpleKVStore
>
Parameters
• persistPath: string
Returns
Promise
<SimpleKVStore
>