A storage implementation that uses a browser Storage API (defaults to localStorage).
Private
The total possible size of storage in bytes.
The number of items in storage.
Throw an error if localStorage is not available.
Clear all items from storage.
Calculate how much space an item would take up in storage.
Get an item from storage.
Determine whether localStorage is available.
true if localStorage is available, false otherwise
Get the key at the given index.
Remove an item from storage.
Set an item in storage.
Calculate how many bytes of storage are in use. If no key is given, calculate for all keys.
Optional
Generated using TypeDoc
A storage implementation that uses a browser Storage API (defaults to localStorage).