up
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user