MCPcopy Create free account
hub / github.com/BerriAI/litellm / async_set_cache

Method async_set_cache

litellm/caching/in_memory_cache.py:197–198  ·  view source on GitHub ↗
(self, key, value, **kwargs)

Source from the content-addressed store, hash-verified

195 heapq.heappush(self.expiration_heap, (self.ttl_dict[key], key))
196
197 async def async_set_cache(self, key, value, **kwargs):
198 self.set_cache(key=key, value=value, **kwargs)
199
200 async def async_set_cache_pipeline(self, cache_list, ttl=None, **kwargs):
201 for cache_key, cache_value in cache_list:

Callers

nothing calls this directly

Calls 1

set_cacheMethod · 0.95

Tested by

no test coverage detected