> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Retention Intent

> Cache retention policy intent.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker`.

<pre />

Cache retention policy intent.

Recommends how long cached content should be retained based on session patterns and inter-call timing.

## Fields

### `recommended_tier: RetentionTier`

Recommended retention tier.

### `expected_session_duration_secs: Option<f64>`

Expected session duration in seconds.

### `inter_call_gap_p50_ms: Option<f64>`

Median inter-call gap in milliseconds.

### `scope_label: SharingScope`

Sharing scope for the retained content.

## Trait Implementations

### `impl Clone for RetentionIntent`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for RetentionIntent`

<pre />

#### `fmt`

<pre />

### `impl<'de> Deserialize<'de> for RetentionIntent`

<pre />

#### `deserialize`

<pre />

### `impl PartialEq for RetentionIntent`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Serialize for RetentionIntent`

<pre />

#### `serialize`

<pre />

### `impl StructuralPartialEq for RetentionIntent`

<pre />