---
title: thunder.cache_option
description: Returns the cache options set when JITting the function.
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.cache_option
---
# thunder.cache_option {#thunder-cache-option}

### `thunder.cache_option(fn)` {#thunder.cache_option}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/__init__.py#L975-L980)

Returns the cache options set when JITting the function.

Return type:

[`CACHE_OPTIONS`](/docs/thunder/0.2.6/common/generated/thunder.common.CACHE_OPTIONS.md#thunder.common.CACHE_OPTIONS "thunder.core.options.CACHE_OPTIONS")

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
