LocalStorageSnapshotStorage
Defined in: packages/save/src/snapshot/LocalStorageSnapshotStorage.ts:4
SnapshotStorage backed by browser localStorage.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LocalStorageSnapshotStorage():
LocalStorageSnapshotStorage
Returns
Section titled “Returns”LocalStorageSnapshotStorage
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(
key):void
Defined in: packages/save/src/snapshot/LocalStorageSnapshotStorage.ts:13
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”list()
Section titled “list()”list(
prefix?):string[]
Defined in: packages/save/src/snapshot/LocalStorageSnapshotStorage.ts:17
Return all keys, optionally filtered to those starting with prefix.
Parameters
Section titled “Parameters”prefix?
Section titled “prefix?”string
Returns
Section titled “Returns”string[]
Implementation of
Section titled “Implementation of”load()
Section titled “load()”load(
key):string|null
Defined in: packages/save/src/snapshot/LocalStorageSnapshotStorage.ts:5
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string | null
Implementation of
Section titled “Implementation of”save()
Section titled “save()”save(
key,data):void
Defined in: packages/save/src/snapshot/LocalStorageSnapshotStorage.ts:9
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”void