MCPcopy
hub / github.com/agent0ai/agent-zero / get

Function get

helpers/cache.py:49–57  ·  view source on GitHub ↗
(area: str, key: Any, default: Any = None)

Source from the content-addressed store, hash-verified

47
48
49def get(area: str, key: Any, default: Any = None) -> Any:
50 if not _is_enabled(area):
51 return default
52 with _lock:
53 entry = _cache.get(area, {}).get(key)
54 if entry is None:
55 return default
56 _touch_entry(entry)
57 return entry.value
58
59
60def remove(area: str, key: Any) -> None:

Callers

nothing calls this directly

Calls 3

_is_enabledFunction · 0.85
_touch_entryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected