The storage for Cache objects. Available only in secure contexts.

interface CacheStorage {
    delete(cacheName): Promise<boolean>;
    has(cacheName): Promise<boolean>;
    keys(): Promise<string[]>;
    match(request, options?): Promise<Response>;
    open(cacheName): Promise<Cache>;
}

Methods

  • Parameters

    • cacheName: string

    Returns Promise<boolean>

  • Parameters

    • cacheName: string

    Returns Promise<boolean>

  • Returns Promise<string[]>

  • Parameters

    • cacheName: string

    Returns Promise<Cache>

Generated using TypeDoc