redis-multi-exec-fix-2
This commit is contained in:
parent
dbf3d1c745
commit
25e05381cb
|
@ -11,6 +11,8 @@ class RedisCache:
|
|||
|
||||
async def connect(self):
|
||||
self._redis = aredis.StrictRedis.from_url(self._uri, decode_responses=True)
|
||||
response = await self._redis.execute('PING')
|
||||
print(f"[redis] PING response: {response}")
|
||||
|
||||
async def disconnect(self):
|
||||
self._redis.connection_pool.disconnect()
|
||||
|
@ -52,9 +54,6 @@ class RedisCache:
|
|||
print(f"[redis] MGET {key} {keys}")
|
||||
return await self._redis.mget(key, *keys)
|
||||
|
||||
async def pipeline(self):
|
||||
print(f"[redis] pipeline")
|
||||
return await self._redis.pipeline()
|
||||
|
||||
|
||||
redis = RedisCache()
|
||||
|
|
Loading…
Reference in New Issue
Block a user