MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / _delete_entry

Method _delete_entry

src/environment/filesystem/cache.py:95–98  ·  view source on GitHub ↗

Delete entry and update total bytes.

(self, key: str, entry: CacheEntry)

Source from the content-addressed store, hash-verified

93 self._misses = 0
94
95 def _delete_entry(self, key: str, entry: CacheEntry) -> None:
96 """Delete entry and update total bytes."""
97 self._entries.pop(key, None)
98 self._total_bytes -= entry.size
99
100 def _evict_if_needed(self) -> None:
101 """Evict entries based on size and count limits."""

Callers 2

getMethod · 0.95
_evict_if_neededMethod · 0.95

Calls 1

popMethod · 0.80

Tested by

no test coverage detected