Class RedisProducer

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

Redis producer. Dispatches to the correct Redis command based on
. Supports all major Redis data structures:
strings, lists, hashes, sets, sorted sets, pub/sub, streams, geo, HyperLogLog, bitmap.
Inside .Transacted(), PUBLISH and XADD wait for the commit (unless transacted=false); other writes wait
for it only with transacted=true, and run the same code on a snapshot of the exchange once it commits.

public sealed class RedisProducer : ConnectableProducer, IProducer, IProcessor

Inheritance

Object→ConnectableProducer→RedisProducer

Implements

Inherited Members

Properties

ProducerEndpoint

The endpoint this producer sends to.

protected override IEndpoint ProducerEndpoint { get; }

ProducerName

Display name for logging (e.g. "http:https://api.example.com", "kafka:orders").

protected override string ProducerName { get; }

Methods

ConnectAsync(CancellationToken)

Set up connection/resources. Awaited by Start() to completion before IsStarted flips to

protected override Task ConnectAsync(CancellationToken ct)

Process(IExchange, CancellationToken)

Processes the exchange asynchronously.

public override Task Process(IExchange exchange, CancellationToken ct = default)

Constructors