fix(proxy_server.py): fix linting issues

This commit is contained in:
Krrish Dholakia 2023-11-24 11:38:53 -08:00
parent d3d8b86eaa
commit 2e8d582a34
5 changed files with 44 additions and 32 deletions

View file

@ -156,8 +156,10 @@ class DualCache(BaseCache):
traceback.print_exc()
def flush_cache(self):
self.redis_cache.flush_cache()
self.in_memory_cache.flush_cache()
if self.in_memory_cache is not None:
self.in_memory_cache.flush_cache()
if self.redis_cache is not None:
self.redis_cache.flush_cache()
#### LiteLLM.Completion Cache ####
class Cache: