MCPcopy
hub / github.com/nodejs/undici / CacheStorage

Interface CacheStorage

types/cache.d.ts:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import type { RequestInfo, Response, Request } from './fetch'
2
3export interface CacheStorage {
4 match (request: RequestInfo, options?: MultiCacheQueryOptions): Promise<Response | undefined>,
5 has (cacheName: string): Promise<boolean>,
6 open (cacheName: string): Promise<Cache>,
7 delete (cacheName: string): Promise<boolean>,
8 keys (): Promise<string[]>
9}
10
11declare const CacheStorage: {
12 prototype: CacheStorage

Callers 10

[kDispatch]Method · 0.65
deduplicate.jsFile · 0.65
setMethod · 0.65
snapshot-utils.jsFile · 0.65
filterHeadersForMatchingFunction · 0.65
filterHeadersForStorageFunction · 0.65
recordMethod · 0.65
matchMethod · 0.65
cache.jsFile · 0.65

Implementers 1

CacheStoragelib/web/cache/cachestorage.js

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…