fixes
This commit is contained in:
@@ -28,6 +28,15 @@ class RedisCache:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
async def execute_pubsub(self, command, *args, **kwargs):
|
||||
while not self._redis:
|
||||
await asyncio.sleep(1)
|
||||
try:
|
||||
print("[redis] " + command + " " + " ".join(args))
|
||||
return await self._redis.execute_pubsub(command, *args, **kwargs)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
async def subscribe(self, *channels):
|
||||
if not self._redis:
|
||||
await self.connect()
|
||||
|
Reference in New Issue
Block a user