geo/backend/app/middleware
chiguyong 6b90fb5cd6 refactor: unify Redis connection pool across all modules
- Create app/core/redis.py with global get_redis() singleton
- Replace 4 independent Redis connections:
  - cache.py: use get_redis() instead of own aioredis.from_url
  - dispatcher.py: use get_redis() instead of own connection
  - health_checker.py: use get_redis() instead of per-check connection
  - rate_limit.py: RedisRateLimitBackend uses get_redis() instead of own connection
- Replace main.py readiness endpoint to use get_redis()
- Add close_redis() in FastAPI lifespan shutdown
- Remove unused aioredis imports from health_checker.py and main.py
2026-06-04 14:21:14 +08:00
..
__init__.py feat: 完整功能补全 - 用户管理/订阅付费/安全限流/管理后台/PDF报告/文档 2026-04-24 10:28:43 +08:00
agent_hooks.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
llm_metrics.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
logging_filter.py fix: 审计发现的问题修复 2026-05-25 23:33:25 +08:00
logging_middleware.py feat: 完整功能补全 - 用户管理/订阅付费/安全限流/管理后台/PDF报告/文档 2026-04-24 10:28:43 +08:00
metrics.py feat: Sentry integration + rate limiter dual backend 2026-06-04 14:04:36 +08:00
prometheus_metrics.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00
rate_limit.py refactor: unify Redis connection pool across all modules 2026-06-04 14:21:14 +08:00
request_id.py feat: 完成系统真实化改造 + Mock清除 + 文档编写 2026-05-23 21:35:10 +08:00
subscription_enforcement.py feat(geo): U1-U9 monetization closed loop implementation 2026-06-01 07:39:05 +08:00