MCPcopy
hub / github.com/MinishLab/semble / evict

Method evict

src/semble/mcp.py:215–218  ·  view source on GitHub ↗
(self, source: str)

Source from the content-addressed store, hash-verified

213 return index
214
215 def evict(self, source: str) -> None:
216 cache_key = self._compute_cache_key(source)
217 self._tasks.pop(cache_key, None)
218 self._revalidate_after.pop(cache_key, None)
219
220 async def _evict_if_stale(self, source: str, cache_key: str) -> None:
221 """Evict a cached local-path entry whose on-disk cache no longer matches its files.

Callers 4

_evict_if_staleMethod · 0.95
getMethod · 0.95
test_cache_evictFunction · 0.80
test_cache_evict_missingFunction · 0.80

Calls 1

_compute_cache_keyMethod · 0.95

Tested by 2

test_cache_evictFunction · 0.64
test_cache_evict_missingFunction · 0.64