IStore
Defined in: store/Store.ts:16
Interface for the Store class.
Methods
destroy()
destroy():
void
Defined in: store/Store.ts:19
Returns
void
getAdapter()
getAdapter<
T
>(adapterId
):T
Defined in: store/Store.ts:23
Type Parameters
• T extends IStorageAdapter
= IStorageAdapter
Parameters
adapterId
string
Returns
T
hasAdapter()
hasAdapter(
adapterId
):boolean
Defined in: store/Store.ts:25
Parameters
adapterId
string
Returns
boolean
initialize()
initialize(
app
):IStore
Defined in: store/Store.ts:17
Parameters
app
Returns
load()
load(
adapterId
,key
):Promise
<any
>
Defined in: store/Store.ts:34
Parameters
adapterId
string
key
string
Returns
Promise
<any
>
registerAdapter()
registerAdapter(
adapter
,adapterOptions
):void
Defined in: store/Store.ts:21
Parameters
adapter
adapterOptions
any
Returns
void
save()
save(
adapterId
,key
,data
,awaitSave
?):Promise
<any
>
Defined in: store/Store.ts:27
Parameters
adapterId
string
| string
[] | Partial
<AdapterSaveConfig
>[]
key
string
data
any
awaitSave?
boolean
Returns
Promise
<any
>