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

Interface CacheStore

types/cache-interceptor.d.ts:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 * Underlying storage provider for cached responses
109 */
110 export interface CacheStore {
111 get(key: CacheKey): GetResult | Promise<GetResult | undefined> | undefined
112
113 createWriteStream(key: CacheKey, val: CacheValue): Writable | undefined
114
115 delete(key: CacheKey): void | Promise<void>
116 }
117
118 export interface MemoryCacheStoreOpts {
119 /**

Callers 14

cacheStoreTestsFunction · 0.95
getMethod · 0.65
finalMethod · 0.65
deleteMethod · 0.65
sizeMethod · 0.65
[kDispatch]Method · 0.65
[kDispatch]Method · 0.65
closeClientIfUnusedMethod · 0.65
cacheStoreTestsFunction · 0.95
handle304Method · 0.65
onResponseStartMethod · 0.65

Implementers 5

MemoryCacheStoretypes/cache-interceptor.d.ts
SqliteCacheStoretypes/cache-interceptor.d.ts
MemoryCacheStorelib/cache/memory-cache-store.js
SqliteCacheStorelib/cache/sqlite-cache-store.js
AsyncCacheStoretest/interceptors/cache-async-store.js

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…