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

Function _cache_get

src/tool_system/tools/web_fetch.py:306–314  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

304
305
306def _cache_get(url: str) -> tuple[str, str, int] | None:
307 entry = _url_cache.get(url)
308 if entry is None:
309 return None
310 ts, content, content_type, status = entry
311 if time.time() - ts > _CACHE_TTL:
312 del _url_cache[url]
313 return None
314 return content, content_type, status
315
316
317def _cache_set(url: str, content: str, content_type: str, status: int) -> None:

Callers 1

_web_fetch_callFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected