Skip to content

StorageAdapter

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

A class representing a storage adapter module.

The type of the application that the module belongs to.

O = any

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

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

Creates a new StorageAdapter.

string = 'StorageAdapter'

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

StorageAdapter<O>

Plugin.constructor

readonly id: string = 'StorageAdapter'

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

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

IStorageAdapter.id

Plugin.id

get app(): Application

Defined in: plugins/Plugin.ts:52

Application

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:78

Add signal connections to the container.

SignalConnection[]

The signal connections to add.

void

IStorageAdapter.addSignalConnection

Plugin.addSignalConnection


clearSignalConnections(): void

Defined in: plugins/Plugin.ts:84

void

IStorageAdapter.clearSignalConnections

Plugin.clearSignalConnections


destroy(): void

Defined in: plugins/Plugin.ts:56

void

IStorageAdapter.destroy

Plugin.destroy


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

Defined in: plugins/Plugin.ts:60

Partial<O>

IApplication

void | Promise<void>

IStorageAdapter.initialize

Plugin.initialize


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

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

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:67

IApplication

void | Promise<void>

IStorageAdapter.postInitialize

Plugin.postInitialize


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

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

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