Constructor
Adds an object to the database obj: The object to add key: The key to add the object with options: The options to add the object with
Clears the database of all items and options Returns a promise that resolves when the operation is complete
Compacts the database. This is used to remove expired items from the database. This method is called automatically by the cache. Returns a promise that resolves when the operation is complete
Gets the options for an object in the database by key key: The key of the object to get the options for Returns a promise that resolves with the options
Retrieves the value associated with the specified key from the storage provider. If the value does not exist, it falls back to the provided promise and adds the value to the storage. key: The key to retrieve the value for fallBack: A promise that resolves to the fallback value if the key does not exist options: The options for the cache entry Returns a promise that resolves to the retrieved or fallback value
Removes an object from the database key: The key of the object to remove
The IndexedDbStorageProvider uses IndexedDB to store items in the cache