Skip to main content

Definition

Assembly: CloudNimble.McpEssentials.Redis.dll Namespace: CloudNimble.McpEssentials.Redis.Tasks Inheritance: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBase

Syntax

Summary

An IMcpTaskStorePlus that persists snapshots as Redis strings with PEXPIREAT from StoredMcpTask.DiscardAfter and fans resolved input over pub/sub.

Remarks

Register as a singleton. The host owns IConnectionMultiplexer. Native expiry is the drain; McpTaskStoreBase.AutoSweep defaults to false. WAIT after create is off until RedisMcpTaskStore.WaitReplicas is positive. Eventually-consistent Redis without wait is not SEP-2663 durable across nodes.

Constructors

.ctor

Initializes a new instance of the RedisMcpTaskStore class.

Syntax

Parameters

Exceptions

.ctor

Initializes a new instance that always uses userId.

Syntax

Parameters

Exceptions

.ctor

Initializes a new instance that resolves the user from a ClaimsPrincipal.

Syntax

Parameters

Exceptions

.ctor

Initializes a new instance with deferred factories so the MCP server builder can capture the store before Build().

Syntax

Parameters

Exceptions

Properties

Database Virtual

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

Syntax

Property Value

Type: int

KeyPrefix Virtual

Gets or sets the key prefix. Task keys are {prefix}:task:{taskId}.

Syntax

Property Value

Type: string

WaitReplicas Virtual

Gets or sets how many replicas must acknowledge a create. Zero skips WAIT.

Syntax

Property Value

Type: int

WaitTimeout Virtual

Gets or sets how long to wait for replica acknowledgement.

Syntax

Property Value

Type: System.TimeSpan

Methods

Dispose Virtual

Syntax

  • System.IDisposable