MCPcopy Index your code
hub / github.com/promptfoo/promptfoo / getInflightFetchCacheKey

Function getInflightFetchCacheKey

src/cache.ts:555–558  ·  view source on GitHub ↗
(cacheKey: string, url: RequestInfo, options: RequestInit)

Source from the content-addressed store, hash-verified

553}
554
555function getInflightFetchCacheKey(cacheKey: string, url: RequestInfo, options: RequestInit) {
556 const signal = options.signal ?? (url instanceof Request ? url.signal : undefined);
557 return signal ? `${cacheKey}:signal:${getAbortSignalId(signal)}` : cacheKey;
558}
559
560function serializeFetchResponse(
561 data: unknown,

Callers 1

fetchWithCacheFunction · 0.85

Calls 1

getAbortSignalIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…