mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(feat) debug when in meory cache is used
This commit is contained in:
parent
4b717810ec
commit
1917ee7fcf
1 changed files with 1 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue