Cache
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:984
The Cache API allows fine grained control of reading and writing from the Cloudflare global network cache.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Cache():
Cache
Returns
Section titled “Returns”Cache
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(
request,options?):Promise<boolean>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:986
Parameters
Section titled “Parameters”request
Section titled “request”RequestInfo<unknown, CfProperties<unknown>> | URL
options?
Section titled “options?”Returns
Section titled “Returns”Promise<boolean>
match()
Section titled “match()”match(
request,options?):Promise<undefined|Response>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:991
Parameters
Section titled “Parameters”request
Section titled “request”RequestInfo<unknown, CfProperties<unknown>> | URL
options?
Section titled “options?”Returns
Section titled “Returns”Promise<undefined | Response>
put(
request,response):Promise<void>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:996
Parameters
Section titled “Parameters”request
Section titled “request”RequestInfo<unknown, CfProperties<unknown>> | URL
response
Section titled “response”Returns
Section titled “Returns”Promise<void>
