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

Function newDetectionCache

internal/desktop/tool_cache.go:46–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func newDetectionCache() *detectionCache {
47 return &detectionCache{
48 path: filepath.Join(pathutil.CacheDir(), "tools", "detection.json"),
49 entries: map[string]detectionEntry{},
50 }
51}
52
53// loadOnce reads the on-disk cache into memory the first time it is called.
54// Best-effort: a missing or corrupt file leaves the cache empty so callers

Calls 1

CacheDirFunction · 0.92