Definition
Assembly: CloudNimble.McpEssentials.Redis.dll Namespace: CloudNimble.McpEssentials.Redis.Tasks Inheritance: CloudNimble.McpEssentials.Core.Tasks.McpTaskStoreBaseSyntax
Summary
An IMcpTaskStorePlus that persists snapshots as Redis strings withPEXPIREAT from StoredMcpTask.DiscardAfter and fans resolved input
over pub/sub.
Remarks
Register as a singleton. The host ownsIConnectionMultiplexer.
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 beforeBuild().
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 skipsWAIT.
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
Related APIs
- System.IDisposable