Skip to content

Cache

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1121

The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.

Cloudflare Docs Reference

new Cache(): Cache

Cache

delete(request, options?): Promise<boolean>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1123

RequestInfo<unknown, CfProperties<unknown>> | URL

CacheQueryOptions

Promise<boolean>


match(request, options?): Promise<undefined | Response>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1128

RequestInfo<unknown, CfProperties<unknown>> | URL

CacheQueryOptions

Promise<undefined | Response>


put(request, response): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1133

RequestInfo<unknown, CfProperties<unknown>> | URL

Response

Promise<void>