MCPcopy
hub / github.com/promptfoo/promptfoo / hashFetchCacheKey

Function hashFetchCacheKey

src/cache.ts:433–435  ·  view source on GitHub ↗
(identity: unknown)

Source from the content-addressed store, hash-verified

431}
432
433function hashFetchCacheKey(identity: unknown) {
434 return sha256(JSON.stringify(identity));
435}
436
437function hashBytesForCacheKey(bytes: ArrayBuffer | ArrayBufferView) {
438 const buffer = ArrayBuffer.isView(bytes)

Callers 1

getFetchCacheKeyFunction · 0.85

Calls 1

sha256Function · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…