Lukas
bd6170722a
feat(geo): add cache hit/miss metrics and prewarm support
- Add _hits/_misses counters to GeoCache for cache hit/miss ratio tracking
- Reset counters on clear()
- Count hits before misses in lookup_batch() to avoid interleaving
- Add synchronous prewarm() using asyncio.create_task for fire-and-forget
- Add hits/misses fields to GeoCacheStatsResponse model
- Add TestCacheMetrics (5 tests), TestPrewarm (3 tests), TestLargeBanList (2 tests)
- Fix _make_async_db() mock: db.execute is not async, returns ctx manager
- Move collections.abc to TYPE_CHECKING block (TC003)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-03 00:35:47 +02:00
..
2026-02-28 21:15:01 +01:00
2026-04-25 18:39:30 +02:00
2026-05-01 18:01:11 +02:00
2026-05-02 21:29:30 +02:00
2026-04-27 18:34:11 +02:00
2026-04-29 19:10:51 +02:00
2026-05-02 23:39:43 +02:00
2026-04-27 18:34:11 +02:00
2026-05-02 23:39:43 +02:00
2026-04-26 14:27:33 +02:00
2026-05-01 21:47:36 +02:00
2026-04-29 19:10:51 +02:00
2026-04-25 18:39:30 +02:00
2026-05-01 21:47:36 +02:00
2026-05-03 00:35:47 +02:00
2026-04-23 16:18:09 +02:00
2026-05-01 21:47:36 +02:00
2026-05-01 21:47:36 +02:00
2026-04-28 20:48:00 +02:00
2026-05-01 21:47:36 +02:00
2026-04-25 18:39:30 +02:00
2026-05-01 21:47:36 +02:00
2026-04-26 14:27:33 +02:00
2026-05-01 21:47:36 +02:00
2026-04-17 15:13:07 +02:00
2026-04-30 20:10:00 +02:00