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

Method get_cache

litellm/proxy/common_utils/user_api_key_cache.py:41–49  ·  view source on GitHub ↗
(
        self,
        key: Any,
        parent_otel_span: Any = None,
        local_only: bool = False,
        *,
        model_type: Type[T],
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

39
40 @overload
41 def get_cache(
42 self,
43 key: Any,
44 parent_otel_span: Any = None,
45 local_only: bool = False,
46 *,
47 model_type: Type[T],
48 **kwargs: Any,
49 ) -> Optional[T]: ...
50
51 @overload
52 def get_cache(

Callers 13

async_get_tokenMethod · 0.45
_get_container_ownerFunction · 0.45
_get_stored_container_idFunction · 0.45
async_get_tokenMethod · 0.45
exchange_tokenMethod · 0.45
async_get_cacheMethod · 0.45
coalescedMethod · 0.45

Calls 2

popMethod · 0.80
deserializeMethod · 0.80