Initializes an instance of IndexedDbStorageAdapter
.
Configuration options.
Currently only name
is supported and must be the name of the
IndexedDB database where the data will be stored.
Removes all of the entries from persistent storage.
Checks if the data for the key
exists.
true
if data for the key
exists, or false
otherwise.Retrieves a collection of all of the values in persistent storage.
Retieves the data for the key
.
Removes the data for the key
.
Promise resolved with true
if data have been removed, or false
otherwise.
Saves the data
under the key
in persistent storage. If the key
already exists, throws StorageEntryAlreadyExistsError.
Sets the new data for the key
.
Implementation of IStorageAdapter that uses IndexedDB for persistence. For use in browsers.