MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / InMemoryRouteStatsStorage

Class InMemoryRouteStatsStorage

uncommon_route/stats.py:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206
207
208class InMemoryRouteStatsStorage(RouteStatsStorage):
209 def __init__(self) -> None:
210 self._data: list[dict[str, Any]] = []
211
212 def load(self) -> list[dict[str, Any]]:
213 return list(self._data)
214
215 def save(self, records: list[dict[str, Any]]) -> None:
216 self._data = list(records)
217
218
219# ─── Collector ───

Calls

no outgoing calls