CacheStorage
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1107
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 CacheStorage():
CacheStorage
Returns
Section titled “Returns”CacheStorage
Properties
Section titled “Properties”default
Section titled “default”
readonlydefault:Cache
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1114
Methods
Section titled “Methods”open()
Section titled “open()”open(
cacheName):Promise<Cache>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:1113
The open() method of the the Cache object matching the cacheName.
Parameters
Section titled “Parameters”cacheName
Section titled “cacheName”string
Returns
Section titled “Returns”Promise<Cache>