MCPcopy Create free account
hub / github.com/amrkmn/x / restoreStaticCache

Function restoreStaticCache

scripts/task.ts:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52 return 'full';
53}
54
55async function restoreStaticCache(): Promise<void> {
56 const key = await generateCacheKey();
57 const restoredKey = await restoreCache(CACHE_PATHS, key, CACHE_RESTORE_KEYS);
58
59 if (restoredKey) logger.info('cache', `restore complete key=${JSON.stringify(restoredKey)}`);
60 else logger.info('cache', 'restore skipped reason="not_found"');
61}
62

Callers 2

updateExtensionsFunction · 0.85
task.tsFile · 0.85

Calls 3

generateCacheKeyFunction · 0.90
restoreCacheFunction · 0.90
infoMethod · 0.80

Tested by

no test coverage detected