Class ArtifactIndexedDBCache

Cache by IndexedDB to support caching model data

Hierarchy

  • ArtifactIndexedDBCache

Implements

Constructors

Methods

  • Fetch data from url and add into cache. If already exists in cache, should return instantly.

    Note

    This is an async function.

    Parameters

    • url: string
    • Optional storetype: string

    Returns Promise<void>

  • Parameters

    • url: string
    • response: any
    • Optional storetype: string

    Returns Promise<void>

  • Parameters

    • url: string

    Returns Promise<any>

  • Retrieve data object that corresponds to url from cache. If data object does not exist in cache, fetch the data and then add to cache.

    Note

    This is an async function.

    Parameters

    • url: string
    • Optional storetype: string

    Returns Promise<any>

    The data object (i.e. users do not need to call .json() or .arraybuffer()).

Generated using TypeDoc