Skip to content

Cache

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:991

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.20250823.0/node_modules/@cloudflare/workers-types/index.ts:993

RequestInfo<unknown, CfProperties<unknown>> | URL

CacheQueryOptions

Promise<boolean>


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

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:998

RequestInfo<unknown, CfProperties<unknown>> | URL

CacheQueryOptions

Promise<undefined | Response>


put(request, response): Promise<void>

Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1003

RequestInfo<unknown, CfProperties<unknown>> | URL

Response

Promise<void>