MCPcopy
hub / github.com/di-sukharev/opencommit / getCacheInfo

Function getCacheInfo

out/cli.cjs:86425–86434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86423function clearModelCache() {
86424 try {
86425 if ((0, import_fs5.existsSync)(MODEL_CACHE_PATH)) {
86426 (0, import_fs5.writeFileSync)(MODEL_CACHE_PATH, "{}", "utf8");
86427 }
86428 } catch {
86429 }
86430}
86431function getCacheInfo() {
86432 const cache = readCache();
86433 if (!cache) {
86434 return { timestamp: null, providers: [] };
86435 }
86436 return {
86437 timestamp: cache.timestamp,

Callers 2

selectModelFunction · 0.70
cli.cjsFile · 0.70

Calls 2

readCacheFunction · 0.70
keysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…