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

# Caching Preset • Rust AI Agent SDK

> CachingPreset: Caching preset configuration

# CachingPreset

> Defined in the [**presets**](../modules/presets) module.

<Badge color="orange">Rust AI Agent SDK</Badge>

Caching preset configuration

## Fields

| Name             | Type                | Description           |
| ---------------- | ------------------- | --------------------- |
| `enabled`        | `bool`              | Enable caching        |
| `prompt_caching` | `bool`              | Enable prompt caching |
| `ttl_secs`       | `Option&lt;u64&gt;` | Cache TTL in seconds  |

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-rust/praisonai/src/presets.rs#L718">
  `praisonai/src/presets.rs` at line 718
</Card>
