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-05-02 21:29:30 +02:00
2026-05-01 17:33:56 +02:00
2026-05-02 21:29:30 +02:00
2026-05-02 23:39:43 +02:00
2026-05-02 22:47:10 +02:00
2026-05-01 21:47:36 +02:00
2026-05-02 23:39:43 +02:00
2026-05-02 21:29:30 +02:00
2026-05-01 21:47:36 +02:00
2026-05-02 21:29:30 +02:00
2026-04-27 18:34:11 +02:00
2026-05-01 21:47:36 +02:00
2026-04-30 21:33:08 +02:00
2026-05-03 00:35:47 +02:00
2026-03-03 20:38:32 +01:00
2026-05-02 22:47:10 +02:00
2026-05-03 00:12:44 +02:00
2026-04-28 09:40:10 +02:00
2026-05-01 17:43:47 +02:00