skip to Main Content

Asynchronous code failure when connecting to redis

I created a small class to perform basic operations with redis, using aioredis. class RedisService: def __init__(self, r_url) -> str: self.redis = r_url async def create_connection(self): return await aioredis.create_redis(self.redis) async def _get(self, key) -> str: try: return await self.create_connection().get(key, encoding='utf-8')…

VIEW QUESTION
Back To Top
Search