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

# RedisMcpTaskStoreOptions

> Registration knobs for [RedisMcpTaskStore](/mcpessentials/api-reference/CloudNimble/McpEssentials/Redis/Tasks/RedisMcpTaskStore).

## Definition

**Assembly:** CloudNimble.McpEssentials.Redis.dll

**Namespace:** CloudNimble.McpEssentials.Redis.Tasks

**Inheritance:** CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreOptions

## Syntax

```csharp theme={"dark"}
CloudNimble.McpEssentials.Redis.Tasks.RedisMcpTaskStoreOptions
```

## Summary

Registration knobs for [RedisMcpTaskStore](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Redis/Tasks/RedisMcpTaskStore.md).

## Constructors

### &#x20;.ctor

Initializes a new instance with Redis defaults: no request-path sweep
([McpTaskStoreOptions.AutoSweep](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/McpTaskStoreOptions.md#autosweep) is [`false`](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool)).
Redis expires keys from [StoredMcpTask.DiscardAfter](https://ai.easyaf.dev/mcpessentials/api-reference/CloudNimble/McpEssentials/Core/Tasks/StoredMcpTask.md#discardafter).

#### Syntax

```csharp theme={"dark"}
public RedisMcpTaskStoreOptions()
```

## Properties

### &#x20;Database

Gets or sets the Redis database index, or `-1` for the multiplexer default.

#### Syntax

```csharp theme={"dark"}
public int Database { get; set; }
```

#### Property Value

Type: `int`
The default is `-1`.

### &#x20;KeyPrefix

Gets or sets the key prefix. Task keys are `{prefix}:task:{taskId}`.
The input channel is `{prefix}:task:input`.

#### Syntax

```csharp theme={"dark"}
public string KeyPrefix { get; set; }
```

#### Property Value

Type: `string`
The default is `mcp`.

### &#x20;WaitReplicas

Gets or sets how many replicas must acknowledge a write before
`CreateTaskAsync` returns. Zero skips `WAIT` (standalone Redis).

#### Syntax

```csharp theme={"dark"}
public int WaitReplicas { get; set; }
```

#### Property Value

Type: `int`
The default is 0.

### &#x20;WaitTimeout

Gets or sets how long to wait for replica acknowledgement.

#### Syntax

```csharp theme={"dark"}
public System.TimeSpan WaitTimeout { get; set; }
```

#### Property Value

Type: `System.TimeSpan`
The default is one second.

## Methods

### &#x20;ApplyTo Override

#### Syntax

```csharp theme={"dark"}
public override void ApplyTo(CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBase store)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `store` | `CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBase` | - |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.