ClassStorage & Replay@public
NullStorageBackend
In-memory storage backend for headless unit tests. Data lives only for the lifetime of this instance.
ts
export declare class NullStorageBackend implements FlxStorageBackendMethods
close()
ts
close(key: string): voidParameters:
| Parameter | Type | Description |
|---|---|---|
key | string | - |
Returns: void
erase()
ts
erase(key: string): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
key | string | - |
Returns: boolean
read()
ts
read(key: string): Record<string, unknown> | nullParameters:
| Parameter | Type | Description |
|---|---|---|
key | string | - |
Returns: Record<string, unknown> | null
write()
ts
write(key: string, data: Record<string, unknown>): FlxSaveResultParameters:
| Parameter | Type | Description |
|---|---|---|
key | string | - |
data | Record<string, unknown> | - |
Returns: FlxSaveResult