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-30 19:31:11 +02:00
2026-05-02 22:47:10 +02:00
2026-04-28 07:46:02 +02:00
2026-05-03 00:05:33 +02:00
2026-05-01 21:47:36 +02:00
2026-05-02 23:03:57 +02:00
2026-05-01 21:47:36 +02:00
2026-04-30 19:31:11 +02:00
2026-04-28 21:27:26 +02:00
2026-05-03 00:35:47 +02:00
2026-05-01 21:47:36 +02:00
2026-05-01 21:47:36 +02:00
2026-04-30 19:31:11 +02:00
2026-05-01 21:47:36 +02:00
2026-04-28 21:27:26 +02:00
2026-05-02 23:03:57 +02:00
2026-05-01 21:47:36 +02:00
2026-04-28 21:27:26 +02:00
2026-04-28 21:27:26 +02:00