Skip to main content

IndexedDBDataSource class

Storage in the browser, uses indexed db storage

IndexedDBDataSource Type

Signature:

export declare class IndexedDBDataSource<Type> implements IDataSource<Type> 

Implements: IDataSource<Type>

Constructors

ConstructorModifiersDescription
(constructor)(_storageKey)Constructs a new instance of the IndexedDBDataSource class

Methods

MethodModifiersDescription
delete(key, keyName)deletes item from the indexed db storage
get(key, keyName)Gets value from the indexed db storage by given key
load()loads all from the indexed db storage
save(key, value, keyName)Saves value to the indexed db storage