MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / _cache_set

Function _cache_set

src/tool_system/tools/web_fetch.py:317–321  ·  view source on GitHub ↗
(url: str, content: str, content_type: str, status: int)

Source from the content-addressed store, hash-verified

315
316
317def _cache_set(url: str, content: str, content_type: str, status: int) -> None:
318 if len(_url_cache) >= _CACHE_MAX_SIZE:
319 oldest_key = min(_url_cache, key=lambda k: _url_cache[k][0])
320 del _url_cache[oldest_key]
321 _url_cache[url] = (time.time(), content, content_type, status)
322
323
324# -- Preapproved Domains ------------------------------------------------------

Callers 1

_web_fetch_callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected