Class: SimpleIndexStore
Hierarchy
-
KVIndexStore
↳
SimpleIndexStore
Constructors
constructor
• new SimpleIndexStore(kvStore?
)
Parameters
Name | Type |
---|---|
kvStore? | BaseInMemoryKVStore |
Overrides
KVIndexStore.constructor
Defined in
packages/core/src/storage/indexStore/SimpleIndexStore.ts:15
Properties
kvStore
• Private
kvStore: BaseInMemoryKVStore
Defined in
packages/core/src/storage/indexStore/SimpleIndexStore.ts:13
Methods
addIndexStruct
▸ addIndexStruct(indexStruct
): Promise
<void
>
Parameters
Name | Type |
---|---|
indexStruct | IndexStruct |
Returns
Promise
<void
>
Inherited from
KVIndexStore.addIndexStruct
Defined in
packages/core/src/storage/indexStore/KVIndexStore.ts:17
deleteIndexStruct
▸ deleteIndexStruct(key
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
Returns
Promise
<void
>
Inherited from
KVIndexStore.deleteIndexStruct
Defined in
packages/core/src/storage/indexStore/KVIndexStore.ts:23
getIndexStruct
▸ getIndexStruct(structId?
): Promise
<undefined
| IndexStruct
>
Parameters
Name | Type |
---|---|
structId? | string |
Returns
Promise
<undefined
| IndexStruct
>
Inherited from
KVIndexStore.getIndexStruct
Defined in
packages/core/src/storage/indexStore/KVIndexStore.ts:27
getIndexStructs
▸ getIndexStructs(): Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Inherited from
KVIndexStore.getIndexStructs
Defined in
packages/core/src/storage/indexStore/KVIndexStore.ts:43
persist
▸ persist(persistPath?
, fs?
): Promise
<void
>
Parameters
Name | Type | Default value |
---|---|---|
persistPath | string | DEFAULT_PERSIST_DIR |
fs | GenericFileSystem | DEFAULT_FS |
Returns
Promise
<void
>
Overrides
KVIndexStore.persist