MCPcopy Create free account
hub / github.com/ParzivalHack/PySpector / _l1_put

Method _l1_put

src/pyspector/ast_cache.py:332–336  ·  view source on GitHub ↗
(self, key: str, entry: FileCacheEntry)

Source from the content-addressed store, hash-verified

330 return entry
331
332 def _l1_put(self, key: str, entry: FileCacheEntry) -> None:
333 self._l1[key] = entry
334 self._l1.move_to_end(key)
335 while len(self._l1) > self._max_l1:
336 self._l1.popitem(last=False) # evict least-recently-used
337
338 def _get_entry(self, file_path: Path, content: str) -> FileCacheEntry:
339 # Resolve once: L1 key and L2 hash must both use the canonical path.

Callers 1

_get_entryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected