Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CacheStorage

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

interface CacheStorage {
delete(cacheName: string): Promise<boolean>;
has(cacheName: string): Promise<boolean>;
keys(): Promise<string[]>;
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
open(cacheName: string): Promise<Cache>;
}
var CacheStorage: {
prototype: CacheStorage;
new (): CacheStorage;
}
;

§Methods

§
delete(cacheName: string): Promise<boolean>
[src]
§
has(cacheName: string): Promise<boolean>
[src]
§
keys(): Promise<string[]>
[src]
§
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>
[src]
§
open(cacheName: string): Promise<Cache>
[src]