# get_llm_cache

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/globals/get_llm_cache)

Get the value of the `llm_cache` global setting.

## Signature

```python
get_llm_cache() -> Optional[BaseCache]
```

## Returns

`Optional[BaseCache]`

The value of the `llm_cache` global setting.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/1c3a4186cf2ba4f28face59118ac7786de009f91/libs/core/langchain_core/globals.py#L66)