Class RedisEndpoint

Namespace: redb.Route.Redis
Assembly: redb.Route.Redis.dll

Redis endpoint. Parses the operation type and resource from the URI path.
Manages a shared and .
Path format: OPERATION:resource or OPERATION/resource.
Example: redis:SET:user:123?ttl=300 → OperationType=SET, Resource="user:123".

public sealed class RedisEndpoint : EndpointBase<RedisEndpointOptions>, IEndpoint, IEndpointStatistics, IDisposable

Inheritance

Object→RedisEndpointOptions}→RedisEndpoint

Implements

Properties

OperationType

Parsed Redis operation type.

public RedisOperationType OperationType { get; }

Resource

Resource portion of the path (key, channel, stream name, etc.).

public string Resource { get; }

Methods

CreateConsumer(IProcessor)

Creates a consumer for receiving messages from this endpoint.

public override IConsumer CreateConsumer(IProcessor processor)

CreateProducer()

Creates a producer for sending messages to this endpoint.

public override IProducer CreateProducer()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Stop(CancellationToken)

Stops the endpoint lifecycle.

public override Task Stop(CancellationToken ct = default)

Constructors