You have to init the redis connection with await redis_dependency.init() . Now you can use it as FastAPI Dependency. from aioredis import Redis from ...
確定! 回上一頁