Class IndexedDbStorageProvider

The IndexedDbStorageProvider uses IndexedDB to store items in the cache

Implements

Constructors

Methods

  • Gets an object from the database by key table: The table to get the object from key: The key of the object to get

    Parameters

    • key: string

    Returns Promise<any>

  • 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

    Parameters

    Returns Promise<any>