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.

    Note

    This is an async function.

    Parameters

    • url: string
    • Optional storetype: string

    Returns Promise<void>

  • Delete url in cache if url exists

    Note

    This is an async function.

    Parameters

    • url: string

    Returns Promise<void>

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

  • check if cache has all keys in Cache

    Note

    This is an async function.

    Parameters

    • keys: string[]

    Returns Promise<boolean>

Generated using TypeDoc