This commit is contained in:
root
2026-10-16 13:51:00 +08:00
parent 6bf949949c
commit 8fc899d0a9
3830 changed files with 11228 additions and 188377 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