skip to Main Content

Is redis in Python asynchronous?

I have the following Python code: import redis from app.infra.services.notifications import INotifier from app.schemas.notification import NotificationMessage from app.config import settings REDIS_CLIENT_PUBSUB = redis.StrictRedis( host=settings.REDIS_HOST, port=settings.REDIS_PORT, password=settings.REDIS_PASSWORD, ) class RedisNotifier(INotifier): def __init__(self): self.redis_client = REDIS_CLIENT_PUBSUB async def send_notification(self, room: str, notification:…

VIEW QUESTION
Back To Top
Search