mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(caching.py): close redis connection pool upon proxy shutdown
This commit is contained in:
parent
203c5d7a0c
commit
27de1089a6
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue