fix(caching.py): close redis connection pool upon proxy shutdown

This commit is contained in:
Krrish Dholakia 2024-03-16 10:39:44 -07:00
parent 203c5d7a0c
commit 27de1089a6
2 changed files with 2 additions and 1 deletions

View file

@ -266,7 +266,7 @@ class RedisCache(BaseCache):
self.redis_client.flushall()
async def disconnect(self):
pass
await self.async_redis_conn_pool.disconnect(inuse_connections=True)
def delete_cache(self, key):
self.redis_client.delete(key)