Skip to content

StorageAdapter

Defined in: store/adapters/StorageAdapter.ts:44

A class representing a storage adapter module.

T extends Application = Application

The type of the application that the module belongs to.

new StorageAdapter<T>(id): StorageAdapter<T>

Defined in: store/adapters/StorageAdapter.ts:49

Creates a new StorageAdapter.

string = 'StorageAdapter'

The ID of the adapter. Default is ‘StorageAdapter’.

StorageAdapter<T>

Plugin.constructor

__dill_pixel_method_binding_root: boolean

Defined in: plugins/Plugin.ts:39

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’.

IStorageAdapter.id

Plugin.id

get app(): A

Defined in: plugins/Plugin.ts:53

A

IStorageAdapter.app

Plugin.app


get options(): O

Defined in: plugins/Plugin.ts:44

O

IStorageAdapter.options

Plugin.options

addSignalConnection(…args): void

Defined in: plugins/Plugin.ts:79

Add signal connections to the container.

SignalConnection[]

The signal connections to add.

void

IStorageAdapter.addSignalConnection

Plugin.addSignalConnection


clearSignalConnections(): void

Defined in: plugins/Plugin.ts:85

void

IStorageAdapter.clearSignalConnections

Plugin.clearSignalConnections


destroy(): void

Defined in: plugins/Plugin.ts:57

void

IStorageAdapter.destroy

Plugin.destroy


initialize(options?, _app?): void | Promise<void>

Defined in: plugins/Plugin.ts:61

Partial<any>

IApplication<DataSchema, ActionContext, Action>

void | Promise<void>

IStorageAdapter.initialize

Plugin.initialize


load<TExpectedLoadResult>(_key): undefined | TExpectedLoadResult | Promise<TExpectedLoadResult>

Defined in: store/adapters/StorageAdapter.ts:59

Loads data from a specified key.

TExpectedLoadResult = any

string

The key from which to load the data.

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.

IStorageAdapter.load


postInitialize(_app): void | Promise<void>

Defined in: plugins/Plugin.ts:68

IApplication

void | Promise<void>

IStorageAdapter.postInitialize

Plugin.postInitialize


save<TExpectedSaveResult>(_key, _data, …_rest): any

Defined in: store/adapters/StorageAdapter.ts:73

Saves data under a specified key.

TExpectedSaveResult = any

string

any

any[]

any

A promise that resolves when the data has been saved, or void if the save operation is synchronous.

IStorageAdapter.save