CacheStorage
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/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: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:1114
Methods
Section titled “Methods”open()
Section titled “open()”open(
cacheName):Promise<Cache>
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/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>