Class: abstract
BaseInMemoryKVStore
Extends
Constructors
new BaseInMemoryKVStore()
new BaseInMemoryKVStore():
BaseInMemoryKVStore
Returns
Inherited from
Methods
delete()
abstract
delete(key
,collection
?):Promise
<boolean
>
Parameters
• key: string
• collection?: string
Returns
Promise
<boolean
>
Inherited from
Defined in
packages/llamaindex/src/storage/kvStore/types.ts:13
get()
abstract
get(key
,collection
?):Promise
<StoredValue
>
Parameters
• key: string
• collection?: string
Returns
Promise
<StoredValue
>
Inherited from
Defined in
packages/llamaindex/src/storage/kvStore/types.ts:11
getAll()
abstract
getAll(collection
?):Promise
<Record
<string
,StoredValue
>>
Parameters
• collection?: string
Returns
Promise
<Record
<string
, StoredValue
>>
Inherited from
Defined in
packages/llamaindex/src/storage/kvStore/types.ts:12
persist()
abstract
persist(persistPath
):void
Parameters
• persistPath: string
Returns
void
Defined in
packages/llamaindex/src/storage/kvStore/types.ts:17
put()
abstract
put(key
,val
,collection
?):Promise
<void
>
Parameters
• key: string
• val: Record
<string
, any
>
• collection?: string
Returns
Promise
<void
>
Inherited from
Defined in
packages/llamaindex/src/storage/kvStore/types.ts:6
fromPersistPath()
static
fromPersistPath(persistPath
):BaseInMemoryKVStore
Parameters
• persistPath: string