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

Method async_batch_get_cache

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

Source from the content-addressed store, hash-verified

234 return self.get_cache(key=key, **kwargs)
235
236 async def async_batch_get_cache(self, keys: list, **kwargs):
237 return_val = []
238 for k in keys:
239 val = self.get_cache(key=k, **kwargs)
240 return_val.append(val)
241 return return_val
242
243 async def async_increment(self, key, value: float, **kwargs) -> float:
244 # get the value

Callers

nothing calls this directly

Calls 2

get_cacheMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected