Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>Cache

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface Cache
import { type Cache } from "https://deno.land/x/windmill@v1.352.0/node_modules/evt/lib/types/lib.dom.d.ts";

Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.

Methods

add(request: RequestInfo): Promise<void>
addAll(requests: RequestInfo[]): Promise<void>
delete(request: RequestInfo, options?: CacheQueryOptions): Promise<boolean>
keys(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>
match(request: RequestInfo, options?: CacheQueryOptions): Promise<Response | undefined>
matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>
put(request: RequestInfo, response: Response): Promise<void>