mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-19 20:24:27 +00:00
(feat) debug when in meory cache is used
This commit is contained in:
@@ -48,6 +48,7 @@ class InMemoryCache(BaseCache):
|
||||
self.ttl_dict = {}
|
||||
|
||||
def set_cache(self, key, value, **kwargs):
|
||||
print_verbose("InMemoryCache: set_cache")
|
||||
self.cache_dict[key] = value
|
||||
if "ttl" in kwargs:
|
||||
self.ttl_dict[key] = time.time() + kwargs["ttl"]
|
||||
|
||||
Reference in New Issue
Block a user