StorageAdapter
Defined in: store/adapters/StorageAdapter.ts:44
A class representing a storage adapter module.
Extends
Section titled “Extends”Plugin
<T
>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”T
extends Application
= Application
The type of the application that the module belongs to.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new StorageAdapter<
T
>(id
):StorageAdapter
<T
>
Defined in: store/adapters/StorageAdapter.ts:49
Creates a new StorageAdapter.
Parameters
Section titled “Parameters”string
= 'StorageAdapter'
The ID of the adapter. Default is ‘StorageAdapter’.
Returns
Section titled “Returns”StorageAdapter
<T
>
Overrides
Section titled “Overrides”Properties
Section titled “Properties”__dill_pixel_method_binding_root
Section titled “__dill_pixel_method_binding_root”__dill_pixel_method_binding_root:
boolean
Defined in: plugins/Plugin.ts:39
Inherited from
Section titled “Inherited from”Plugin
.__dill_pixel_method_binding_root
readonly
id:string
='StorageAdapter'
Defined in: store/adapters/StorageAdapter.ts:49
The ID of the adapter. Default is ‘StorageAdapter’.
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get app():
A
Defined in: plugins/Plugin.ts:53
Returns
Section titled “Returns”A
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”options
Section titled “options”Get Signature
Section titled “Get Signature”get options():
O
Defined in: plugins/Plugin.ts:44
Returns
Section titled “Returns”O
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”addSignalConnection()
Section titled “addSignalConnection()”addSignalConnection(…
args
):void
Defined in: plugins/Plugin.ts:79
Add signal connections to the container.
Parameters
Section titled “Parameters”…SignalConnection
[]
The signal connections to add.
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”IStorageAdapter
.addSignalConnection
Inherited from
Section titled “Inherited from”clearSignalConnections()
Section titled “clearSignalConnections()”clearSignalConnections():
void
Defined in: plugins/Plugin.ts:85
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”IStorageAdapter
.clearSignalConnections
Inherited from
Section titled “Inherited from”destroy()
Section titled “destroy()”destroy():
void
Defined in: plugins/Plugin.ts:57
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”initialize()
Section titled “initialize()”initialize(
options?
,_app?
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:61
Parameters
Section titled “Parameters”options?
Section titled “options?”Partial
<any
>
IApplication
<DataSchema
, ActionContext
, Action
>
Returns
Section titled “Returns”void
| Promise
<void
>
Implementation of
Section titled “Implementation of”Inherited from
Section titled “Inherited from”load()
Section titled “load()”load<
TExpectedLoadResult
>(_key
):undefined
|TExpectedLoadResult
|Promise
<TExpectedLoadResult
>
Defined in: store/adapters/StorageAdapter.ts:59
Loads data from a specified key.
Type Parameters
Section titled “Type Parameters”TExpectedLoadResult
Section titled “TExpectedLoadResult”TExpectedLoadResult
= any
Parameters
Section titled “Parameters”string
The key from which to load the data.
Returns
Section titled “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.
Implementation of
Section titled “Implementation of”postInitialize()
Section titled “postInitialize()”postInitialize(
_app
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:68
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
| Promise
<void
>
Implementation of
Section titled “Implementation of”IStorageAdapter
.postInitialize
Inherited from
Section titled “Inherited from”save()
Section titled “save()”save<
TExpectedSaveResult
>(_key
,_data
, …_rest
):any
Defined in: store/adapters/StorageAdapter.ts:73
Saves data under a specified key.
Type Parameters
Section titled “Type Parameters”TExpectedSaveResult
Section titled “TExpectedSaveResult”TExpectedSaveResult
= any
Parameters
Section titled “Parameters”string
any
…any
[]
Returns
Section titled “Returns”any
A promise that resolves when the data has been saved, or void if the save operation is synchronous.