refac: async redis

This commit is contained in:
Timothy Jaeryang Baek
2025-06-09 15:37:05 +04:00
parent 8da1ce358f
commit db3c26ab7a
2 changed files with 38 additions and 20 deletions
+1
View File
@@ -510,6 +510,7 @@ async def lifespan(app: FastAPI):
redis_sentinels=get_sentinels_from_env(
REDIS_SENTINEL_HOSTS, REDIS_SENTINEL_PORT
),
async_mode=True,
)
if isinstance(app.state.redis, Redis):