Eagerly evict stale records. Call before lookups to ensure TTL is respected.
(self, now: float)
| 72 | self._by_response_id[response_id] = session_id |
| 73 | |
| 74 | def evict_expired(self, now: float) -> None: |
| 75 | """Eagerly evict stale records. Call before lookups to ensure TTL is respected.""" |
| 76 | self._evict_expired(now) |
| 77 | |
| 78 | def find_prefix_match(self, msg_hashes: tuple[str, ...]) -> _SessionRecord | None: |
| 79 | """Return the longest existing record whose msg_hashes is a (non-strict) |
no test coverage detected