> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.contrib.capabilities.transforms_util.cache_content_set

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### cache\_content\_set

```python theme={null}
cache_content_set(
    cache: AbstractCache | None,
    key: str,
    content: str | list[dict[str, Any] | str] | None,
    *extra_values
) -> 
```

Sets content into the cache.<br />

<b>Parameters:</b>

| Name            | Description                                                                                                                                                                |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `cache`         | The cache to set the content into.<br /><br />If None, the cache is ignored.<br /><br />**Type:** [AbstractCache](/docs/api-reference/autogen/cache/AbstractCache) \| None |
| `key`           | The key to set the content into.<br /><br />**Type:** str                                                                                                                  |
| `content`       | The message content to set into the cache.<br /><br />**Type:** str \| list\[dict\[str, typing.Any] \| str] \| None                                                        |
| `*extra_values` | Additional values to be passed to the cache.<br /><br />                                                                                                                   |

<br />
