This commit is contained in:
macbook_max
2026-10-15 20:36:59 +08:00
commit 6bf949949c
7923 changed files with 1369582 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
"""Redis 异步客户端(缓存/计数/队列 Broker)"""
import redis.asyncio as aioredis
from app.config import settings
redis_client: aioredis.Redis = aioredis.from_url(settings.redis_url, decode_responses=True)
async def get_redis() -> aioredis.Redis:
return redis_client