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

Method batch_get_cache

litellm/caching/in_memory_cache.py:244–249  ·  view source on GitHub ↗
(self, keys: list, **kwargs)

Source from the content-addressed store, hash-verified

242 return None
243
244 def batch_get_cache(self, keys: list, **kwargs):
245 return_val: Final = []
246 for k in keys:
247 val = self.get_cache(key=k, **kwargs)
248 return_val.append(val)
249 return return_val
250
251 def increment_cache(self, key, value: float, **kwargs) -> float:
252 with self._increment_lock:

Callers

nothing calls this directly

Calls 2

get_cacheMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected