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

Function cachePath

packages/cli/src/registry/remote.ts:43–46  ·  view source on GitHub ↗
(baseUrl: string, key: string)

Source from the content-addressed store, hash-verified

41}
42
43function cachePath(baseUrl: string, key: string): string {
44 const slug = baseUrl.replace(/[^a-zA-Z0-9]/g, "_");
45 return join(CACHE_DIR, `${slug}__${key}.json`);
46}
47
48function readCache<T>(path: string): T | undefined {
49 try {

Callers 2

fetchRegistryManifestFunction · 0.85
fetchItemManifestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected