MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / getCacheKey

Function getCacheKey

frontend-workflow/src/services/secureAssetService.ts:12–14  ·  view source on GitHub ↗
(pathOrUrl: string)

Source from the content-addressed store, hash-verified

10const DEFAULT_TTL_MS = 5 * 60 * 1000;
11
12function getCacheKey(pathOrUrl: string): string {
13 return (pathOrUrl || '').trim();
14}
15
16function getCachedAccessUrl(pathOrUrl: string): string | null {
17 const key = getCacheKey(pathOrUrl);

Callers 4

getCachedAccessUrlFunction · 0.85
storeCachedAccessUrlFunction · 0.85
getSecureAssetUrlFunction · 0.85
clearSecureAssetCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected