MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / saveToCache

Function saveToCache

internal/repoconfig/repoconfig.go:314–320  ·  view source on GitHub ↗
(url string, kind entities.Kind, cache camconfig.CacheConfig, data []byte)

Source from the content-addressed store, hash-verified

312}
313
314func saveToCache(url string, kind entities.Kind, cache camconfig.CacheConfig, data []byte) error {
315 path := cacheFilePath(url, kind, cache)
316 if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
317 return err
318 }
319 return os.WriteFile(path, data, 0o644)
320}
321
322// ---------- JSON parsing -----------------------------------------------------
323

Callers 1

loadRemoteWithCacheFunction · 0.85

Calls 1

cacheFilePathFunction · 0.85

Tested by

no test coverage detected