MCPcopy Create free account
hub / github.com/idank/explainshell / _cache_manpage

Method _cache_manpage

explainshell/caching_store.py:196–207  ·  view source on GitHub ↗
(self, key: _CacheKey, value: _CacheValue)

Source from the content-addressed store, hash-verified

194 )
195
196 def _cache_manpage(self, key: _CacheKey, value: _CacheValue) -> None:
197 entry_size = _estimate_cache_value_size(value)
198 if entry_size > self._manpage_cache_max_entry_bytes:
199 return
200
201 try:
202 self._manpage_cache[key] = value
203 except ValueError:
204 return
205
206 while len(self._manpage_cache) > self._manpage_cache_max_entries:
207 self._manpage_cache.popitem()

Callers 1

find_man_pageMethod · 0.95

Calls 1

Tested by

no test coverage detected