MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / computeCacheKey

Function computeCacheKey

packages/engine/src/services/extractionCache.ts:117–119  ·  view source on GitHub ↗
(input: CacheKeyInput)

Source from the content-addressed store, hash-verified

115 * Compute the SHA-256 hex digest for a cache key input.
116 */
117export function computeCacheKey(input: CacheKeyInput): string {
118 return createHash("sha256").update(canonicalKeyBlob(input)).digest("hex");
119}
120
121/**
122 * Derive the truncated cache-entry directory name from a full key hash.

Callers 2

lookupCacheEntryFunction · 0.85

Calls 2

canonicalKeyBlobFunction · 0.85
updateMethod · 0.80

Tested by

no test coverage detected