StorageAdapter
Defined in: store/adapters/StorageAdapter.ts:44
A class representing a storage adapter module.
Extends
Plugin
<T
>
Extended by
Type Parameters
• T extends Application
= Application
The type of the application that the module belongs to.
Implements
Constructors
new StorageAdapter()
new StorageAdapter<
T
>(id
):StorageAdapter
<T
>
Defined in: store/adapters/StorageAdapter.ts:49
Creates a new StorageAdapter.
Parameters
id
string
= 'StorageAdapter'
The ID of the adapter. Default is ‘StorageAdapter’.
Returns
Overrides
Properties
__dill_pixel_method_binding_root
__dill_pixel_method_binding_root:
boolean
Defined in: plugins/Plugin.ts:37
Inherited from
Plugin
.__dill_pixel_method_binding_root
id
readonly
id:string
='StorageAdapter'
Defined in: store/adapters/StorageAdapter.ts:49
The ID of the adapter. Default is ‘StorageAdapter’.
Implementation of
Inherited from
Accessors
app
Get Signature
get app():
T
Defined in: plugins/Plugin.ts:45
Returns
T
Implementation of
Inherited from
Methods
addSignalConnection()
addSignalConnection(…
args
):void
Defined in: plugins/Plugin.ts:71
Add signal connections to the container.
Parameters
args
…SignalConnection
[]
The signal connections to add.
Returns
void
Implementation of
IStorageAdapter
.addSignalConnection
Inherited from
clearSignalConnections()
clearSignalConnections():
void
Defined in: plugins/Plugin.ts:77
Returns
void
Implementation of
IStorageAdapter
.clearSignalConnections
Inherited from
destroy()
destroy():
void
Defined in: plugins/Plugin.ts:49
Returns
void
Implementation of
Inherited from
initialize()
initialize(
_app
,options
?):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:53
Parameters
_app
options?
any
Returns
void
| Promise
<void
>
Implementation of
Inherited from
load()
load<
TExpectedLoadResult
>(_key
):undefined
|TExpectedLoadResult
|Promise
<TExpectedLoadResult
>
Defined in: store/adapters/StorageAdapter.ts:59
Loads data from a specified key.
Type Parameters
• TExpectedLoadResult = any
Parameters
_key
string
The key from which to load the data.
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
postInitialize()
postInitialize(
_app
):void
|Promise
<void
>
Defined in: plugins/Plugin.ts:60
Parameters
_app
Returns
void
| Promise
<void
>
Implementation of
IStorageAdapter
.postInitialize
Inherited from
save()
save<
TExpectedSaveResult
>(_key
,_data
, …_rest
):any
Defined in: store/adapters/StorageAdapter.ts:73
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.