MCPcopy Create free account
hub / github.com/craftreactnative/ui / getCacheMetadataPath

Function getCacheMetadataPath

cli/src/utils/github-downloader.ts:23–24  ·  view source on GitHub ↗
(branch: string)

Source from the content-addressed store, hash-verified

21const getCacheDir = () => path.join(os.tmpdir(), "craftrn-ui-cli-cache");
22const getCachePath = (branch: string) => path.join(getCacheDir(), branch);
23const getCacheMetadataPath = (branch: string) =>
24 path.join(getCachePath(branch), ".cache-metadata.json");
25
26const CACHE_STALENESS_MS = 24 * 60 * 60 * 1000; // 1 day in milliseconds
27

Callers 2

isCacheStaleFunction · 0.85
saveCacheMetadataFunction · 0.85

Calls 1

getCachePathFunction · 0.85

Tested by

no test coverage detected