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

Method async_get_cache

litellm/proxy/utils.py:228–240  ·  view source on GitHub ↗
(
        self,
        key,
        litellm_parent_otel_span: Union[Span, None],
        local_only: bool = False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

226 self.dual_cache: DualCache = dual_cache
227
228 async def async_get_cache(
229 self,
230 key,
231 litellm_parent_otel_span: Union[Span, None],
232 local_only: bool = False,
233 **kwargs,
234 ) -> Any:
235 return await self.dual_cache.async_get_cache(
236 key=key,
237 local_only=local_only,
238 parent_otel_span=litellm_parent_otel_span,
239 **kwargs,
240 )
241
242 async def async_set_cache(
243 self,

Calls

no outgoing calls