refac: async redis

This commit is contained in:
Timothy Jaeryang Baek committed 2025-06-09 15:37:05 +04:00
1 parent 8da1ce358f
commit db3c26ab7a
2 files changed
+38 -20

No files matched your search

+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):