interface CacheStorage { delete(cacheName: string): Promise<boolean>; has(cacheName: string): Promise<boolean>; keys(): Promise<string[]>; match(request: RequestInfo | URL,
options?: MultiCacheQueryOptions): Promise<undefined | Response>; open(cacheName: string): Promise<Cache>; } Methods
delete
- delete(cacheName): Promise<boolean>
Returns Promise<boolean>
has
- has(cacheName): Promise<boolean>
Returns Promise<boolean>
keys
- keys(): Promise<string[]>
Returns Promise<string[]>
match
- match(request, options?): Promise<undefined | Response>
Returns Promise<undefined | Response>
open
- open(cacheName): Promise<Cache>
Returns Promise<Cache>
The storage for Cache objects. Available only in secure contexts.
MDN Reference