Skip to content

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.

Cloudflare Docs Reference

new CacheStorage(): CacheStorage

CacheStorage

readonly default: Cache

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

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.

MDN Reference

string

Promise<Cache>