> 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 Backend Config

> Backend selection mirroring the adaptive `crate::config::BackendSpec` shape.

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 />

Backend selection mirroring the adaptive [`crate::config::BackendSpec`](/reference/api/rust-library-reference/nemo-relay-adaptive/config/struct-backendspec) shape.

## Fields

### `kind: String`

Backend kind: `"in_memory"` or `"redis"` (needs the `redis-backend` feature).

### `config: Map<String, Value>`

Backend-specific options (in\_memory: `max_bytes`; redis: `url`/`key_prefix`).

## Implementations

### `impl BackendConfig`

<pre />

#### `max_bytes`

<pre />

In-memory total-bytes budget before oldest-first eviction.

## Trait Implementations

### `impl Clone for BackendConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for BackendConfig`

<pre />

#### `fmt`

<pre />

### `impl Default for BackendConfig`

<pre />

#### `default`

<pre />

### `impl<'de> Deserialize<'de> for BackendConfigwhere BackendConfig: Default,`

<pre />

#### `deserialize`

<pre />

### `impl EditorConfig for BackendConfig`

<pre />

#### `editor_schema`

<pre />

### `impl Serialize for BackendConfig`

<pre />

#### `serialize`

<pre />