IStorageAdapter
Defined in: store/adapters/StorageAdapter.ts:7
Interface for a storage adapter module.
Extends
Properties
app
app:
IApplication
Defined in: plugins/Plugin.ts:10
Inherited from
id
id:
string
Defined in: plugins/Plugin.ts:8
Inherited from
Methods
addSignalConnection()
addSignalConnection(…
args
):void
Defined in: plugins/Plugin.ts:18
Parameters
args
…SignalConnection
[]
Returns
void
Inherited from
clearSignalConnections()
clearSignalConnections():
void
Defined in: plugins/Plugin.ts:20
Returns
void
Inherited from
IPlugin
.clearSignalConnections
destroy()
destroy():
void
Defined in: plugins/Plugin.ts:16
Returns
void
Inherited from
initialize()
initialize(
_app
,options
?):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:12
Parameters
_app
options?
any
Returns
void
| Promise
<void
>
Inherited from
load()
load<
TExpectedLoadResult
>(_key
, …args
):undefined
|TExpectedLoadResult
|Promise
<TExpectedLoadResult
>
Defined in: store/adapters/StorageAdapter.ts:28
Loads data from a specified key.
Type Parameters
• TExpectedLoadResult = any
Parameters
_key
string
args
…any
[]
Returns
undefined
| TExpectedLoadResult
| Promise
<TExpectedLoadResult
>
A promise that resolves with the loaded data, or the loaded data if the load operation is synchronous, or null if no data was found.
postInitialize()
postInitialize(
_app
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:14
Parameters
_app
Returns
void
| Promise
<void
>
Inherited from
registerCoreFunctions()
registerCoreFunctions():
void
Defined in: plugins/Plugin.ts:22
Returns
void
Inherited from
registerCoreSignals()
registerCoreSignals():
void
Defined in: plugins/Plugin.ts:24
Returns
void
Inherited from
save()
save<
TExpectedSaveResult
>(_key
,_data
, …_rest
):any
Defined in: store/adapters/StorageAdapter.ts:15
Saves data under a specified key.
Type Parameters
• TExpectedSaveResult = any
Parameters
_key
string
_data
any
_rest
…any
[]
Returns
any
A promise that resolves when the data has been saved, or void if the save operation is synchronous.