Interface ArtifactCacheTemplate

Common Interface for the artifact cache

Hierarchy

  • ArtifactCacheTemplate

Implemented by

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.

  • Delete url in cache if url exists

    Parameters

    • url: string

    Returns Promise<void>

    Note

    This is an async function.

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

  • check if cache has all keys in Cache

    Parameters

    • keys: string[]

    Returns Promise<boolean>

    Note

    This is an async function.

Generated using TypeDoc