Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FetchCache

Index

Properties

Private cache

cache: object

Type declaration

  • [key: string]: Promise<Response>

Private resolvedCache

resolvedCache: object

Type declaration

  • [key: string]: any

Methods

clear

  • clear(): void

fetch

  • fetch(key: string, url: string, init?: RequestInit): Promise<Response>
  • Parameters

    • key: string
    • url: string
    • Optional init: RequestInit

    Returns Promise<Response>

get

  • get(key: string): Promise<Response>

getResolved

  • getResolved(key: string): any

hasKey

  • hasKey(key: string): boolean

hasKeyResolved

  • hasKeyResolved(key: string): boolean

keys

  • keys(): Array<string>

put

  • put(key: string, value: Promise<Response>): void
  • Parameters

    • key: string
    • value: Promise<Response>

    Returns void

putResolved

  • putResolved(key: string, value: object): void

remove

  • remove(key: string): void

size

  • size(): number

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc