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

Method get_cache

litellm/proxy/common_utils/user_api_key_cache.py:190–198  ·  view source on GitHub ↗
(
        self,
        key: str,
        parent_otel_span: Span | None = None,
        local_only: bool = False,
        *,
        model_type: type[T],
        **kwargs: object,
    )

Source from the content-addressed store, hash-verified

188
189 @overload
190 def get_cache(
191 self,
192 key: str,
193 parent_otel_span: Span | None = None,
194 local_only: bool = False,
195 *,
196 model_type: type[T],
197 **kwargs: object,
198 ) -> T | None: ...
199
200 @overload
201 def get_cache(

Calls 4

_get_shared_syncMethod · 0.95
is_user_key_cache_keyFunction · 0.85
_decodedFunction · 0.70
popMethod · 0.45