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-03-07 20:28:51 +01:00
2026-05-01 15:42:05 +02:00
2026-04-29 20:17:58 +02:00
2026-05-02 23:03:57 +02:00
2026-05-03 00:35:47 +02:00
2026-04-30 21:54:14 +02:00
2026-05-03 00:05:33 +02:00
2026-02-28 21:15:01 +01:00
2026-05-02 23:03:57 +02:00
2026-04-29 19:39:55 +02:00
2026-05-02 21:29:30 +02:00
2026-05-02 23:03:57 +02:00
2026-04-17 20:54:08 +02:00
2026-05-01 15:49:39 +02:00
2026-04-27 18:52:12 +02:00
2026-05-01 18:25:26 +02:00
2026-05-02 21:29:30 +02:00
2026-05-01 18:33:14 +02:00
2026-05-03 00:05:33 +02:00
2026-04-26 14:04:21 +02:00
2026-04-17 15:13:07 +02:00
2026-05-01 21:47:36 +02:00
2026-05-02 21:29:30 +02:00
2026-04-28 08:08:05 +02:00
2026-04-30 20:54:24 +02:00
2026-04-26 11:39:51 +02:00
2026-03-24 19:46:12 +01:00