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

Method async_get_cache

litellm/proxy/utils.py:230–242  ·  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

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

Calls

no outgoing calls