> 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 full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Anthropic Cache Plugin

> Anthropic-specific provider plugin for cache_control breakpoint injection.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

```rust
pub struct AnthropicCachePlugin { /* private fields */ }
```

Anthropic-specific provider plugin for cache\_control breakpoint injection.

Translates `CacheStability` and `Retention` intents into Anthropic's explicit `cache_control` annotations. Other intent types are marked `Ignored` / `NotRelevant`.

## Construction

```rust
let registry = CapabilityRegistry::with_defaults();
let plugin = AnthropicCachePlugin::new(&registry);
```

## Implementations

### `impl AnthropicCachePlugin`

<pre />

#### `new`

<pre />

Create a new Anthropic cache plugin backed by the given capability registry.

The registry is cloned into an `Arc` for shared ownership.

## Trait Implementations

### `impl ProviderPlugin for AnthropicCachePlugin`

<pre />

#### `plugin_id`

<pre />

#### `plugin_name`

<pre />

#### `translate`

<pre />

#### `capabilities`

<pre />