Skip to content
InterfaceTypes & Utilities@public

FlxAsyncStorageBackend

Storage backend whose durable writes must be awaited.

ts
export interface FlxAsyncStorageBackend extends FlxStorageBackend

Methods

eraseAsync()

ts
eraseAsync(key: string): Promise<boolean>

Erase data and resolve only after the transaction commits or fails.

Parameters:

ParameterTypeDescription
keystring-

Returns: Promise<boolean>

writeAsync()

ts
writeAsync(key: string, data: Record<string, unknown>): Promise<FlxSaveResult>

Persist data and resolve only after the transaction commits or fails.

Parameters:

ParameterTypeDescription
keystring-
dataRecord<string, unknown>-

Returns: Promise<FlxSaveResult>

Released under the MIT License.