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.

    Parameters

    • url: string
    • Optional storetype: string
    • Optional signal: AbortSignal

    Returns Promise<void>

    Note

    This is an async function.

  • 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.

    Parameters

    • url: string
    • Optional storetype: string
    • Optional signal: AbortSignal

    Returns Promise<any>

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

    Note

    This is an async function.

Generated using TypeDoc