Class: BaseIndexStore
Constructors
constructor
• new BaseIndexStore(): BaseIndexStore
Returns
Methods
addIndexStruct
▸ addIndexStruct(indexStruct
): Promise
<void
>
Parameters
Name | Type |
---|---|
indexStruct | IndexStruct |
Returns
Promise
<void
>
Defined in
packages/core/src/storage/indexStore/types.ts:13
deleteIndexStruct
▸ deleteIndexStruct(key
): Promise
<void
>
Parameters
Name | Type |
---|---|
key | string |
Returns
Promise
<void
>
Defined in
packages/core/src/storage/indexStore/types.ts:15
getIndexStruct
▸ getIndexStruct(structId?
): Promise
<undefined
| IndexStruct
>
Parameters
Name | Type |
---|---|
structId? | string |
Returns
Promise
<undefined
| IndexStruct
>
Defined in
packages/core/src/storage/indexStore/types.ts:17
getIndexStructs
▸ getIndexStructs(): Promise
<IndexStruct
[]>
Returns
Promise
<IndexStruct
[]>
Defined in
packages/core/src/storage/indexStore/types.ts:11
persist
▸ persist(persistPath?
, fs?
): Promise
<void
>
Parameters
Name | Type | Default value |
---|---|---|
persistPath | string | defaultPersistPath |
fs? | GenericFileSystem | undefined |
Returns
Promise
<void
>