MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / add

Function add

helpers/cache.py:40–46  ·  view source on GitHub ↗
(area: str, key: Any, data: Any)

Source from the content-addressed store, hash-verified

38
39
40def add(area: str, key: Any, data: Any) -> None:
41 if not _is_enabled(area):
42 return
43 with _lock:
44 if area not in _cache:
45 _cache[area] = {}
46 _cache[area][key] = _create_entry(data)
47
48
49def get(area: str, key: Any, default: Any = None) -> Any:

Callers

nothing calls this directly

Calls 2

_is_enabledFunction · 0.85
_create_entryFunction · 0.85

Tested by

no test coverage detected