LocalStorageSaveStorage
Defined in: save/src/LocalStorageAdapter.ts:4
SaveStorage backed by browser localStorage.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new LocalStorageSaveStorage():
LocalStorageSaveStorage
Returns
Section titled “Returns”LocalStorageSaveStorage
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(
key):void
Defined in: save/src/LocalStorageAdapter.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: save/src/LocalStorageAdapter.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: save/src/LocalStorageAdapter.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: save/src/LocalStorageAdapter.ts:9
Parameters
Section titled “Parameters”string
string
Returns
Section titled “Returns”void