MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / writeCache

Function writeCache

out/cli.cjs:86203–86212  ·  view source on GitHub ↗
(models)

Source from the content-addressed store, hash-verified

86201 return null;
86202 }
86203 const data = (0, import_fs5.readFileSync)(MODEL_CACHE_PATH, "utf8");
86204 return JSON.parse(data);
86205 } catch {
86206 return null;
86207 }
86208}
86209function writeCache(models) {
86210 try {
86211 const cache = {
86212 timestamp: Date.now(),
86213 models
86214 };
86215 (0, import_fs5.writeFileSync)(MODEL_CACHE_PATH, JSON.stringify(cache, null, 2), "utf8");

Callers 1

fetchModelsForProviderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…