Return all cached last values. O(N) where N is distinct series count.
(&self)
| 68 | |
| 69 | /// Return all cached last values. O(N) where N is distinct series count. |
| 70 | pub fn all(&self) -> impl Iterator<Item = (SeriesId, &LastValueEntry)> { |
| 71 | self.entries.iter().map(|(&id, entry)| (id, entry)) |
| 72 | } |
| 73 | |
| 74 | /// Remove a series from the cache (e.g., on TTL expiry or drop). |
| 75 | pub fn remove(&mut self, series_id: SeriesId) -> bool { |