Amazon Vinyl
    Preparing search index...
    Index
    name: string
    onError?: (error: Error) => void

    If set, when asynchronous caching has failed, this callback will be invoked. This is not invoked when a promise rejects during an operation.

    • Returns Promise<boolean>

      a promise that resolves to true if the Cache object is found and deleted, and false otherwise.

    • Deletes the request from this cache.

      Parameters

      • cacheId: RequestInfo

        The request or cache id used as the cache key.

      Returns Promise<boolean>

    • Resolves to true if the request is cached.

      Parameters

      • cacheId: RequestInfo

      Returns Promise<boolean>

    • Caches a response with added expiry headers.

      Parameters

      • cacheId: RequestInfo
      • response: Response

      Returns Promise<Response>