(feat) debug when in meory cache is used

This commit is contained in:
ishaan-jaff 2024-03-09 16:24:04 -08:00
parent 4b717810ec
commit 1917ee7fcf

View file

@ -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"]