MCPcopy
hub / github.com/apify/crawlee / getCachedRequestId

Function getCachedRequestId

packages/core/src/storages/request_provider.ts:300–309  ·  view source on GitHub ↗
(uniqueKey: string)

Source from the content-addressed store, hash-verified

298
299 const uniqueKeyToCacheKey = new Map<string, string>();
300 const getCachedRequestId = (uniqueKey: string) => {
301 const cached = uniqueKeyToCacheKey.get(uniqueKey);
302
303 if (cached) return cached;
304
305 const newCacheKey = getRequestId(uniqueKey);
306 uniqueKeyToCacheKey.set(uniqueKey, newCacheKey);
307
308 return newCacheKey;
309 };
310
311 const results: BatchAddRequestsResult = {
312 processedRequests: [],

Callers 1

addRequestsFunction · 0.85

Calls 3

getRequestIdFunction · 0.90
setMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…