Class RedisEndpointOptions

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

Typed options for . Bound from URI query parameters.

public sealed class RedisEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→RedisEndpointOptions

Inherited Members

Properties

AckMode

When a stream entry read through a consumer group is settled (). Manual

public AckMode AckMode { get; set; }

Batching

Batch mode of a stream consumer (Apache Camel batching, the batch contract of every broker of redb.Route):

public bool Batching { get; set; }

BatchingIntervalMs

Batch mode: a batch is sent on once this many milliseconds have passed since its first entry.

public int? BatchingIntervalMs { get; set; }

Bit

Bit value for SETBIT.

public bool? Bit { get; set; }

Channel

Channel name for Pub/Sub operations.

public string? Channel { get; set; }

Command

Redis command for COMMAND operation type.

public string? Command { get; set; }

ConnectionFactory

Name of in the route registry.

[RegistryReference(typeof(RedisConnectionFactory))]
public string? ConnectionFactory { get; set; }

ConnectionString

Redis connection string (default: localhost:6379).

public string ConnectionString { get; set; }

ConsumerGroup

Consumer group for Streams.

public string? ConsumerGroup { get; set; }

ConsumerName

Consumer name within a group.

public string? ConsumerName { get; set; }

Database

Redis database index (default: 0).

public int Database { get; set; }

Field

Hash field name for HSET/HGET operations.

public string? Field { get; set; }

GeoUnit

Unit for geo operations: m, km, mi, ft (default: m).

public string GeoUnit { get; set; }

Key

Redis key (for key-based operations). May contain dynamic expressions.

public string? Key { get; set; }

Latitude

Latitude for GEOADD/GEORADIUS.

public double? Latitude { get; set; }

Longitude

Longitude for GEOADD/GEORADIUS.

public double? Longitude { get; set; }

MaxBatchMessages

Largest number of entries in a batch (default ).

public int? MaxBatchMessages { get; set; }

MaxScore

Max score for ZRANGEBYSCORE.

public double? MaxScore { get; set; }

Member1

First member for GEODIST.

public string? Member1 { get; set; }

Member2

Second member for GEODIST.

public string? Member2 { get; set; }

MinScore

Min score for ZRANGEBYSCORE.

public double? MinScore { get; set; }

Offset

Bit offset for SETBIT/GETBIT.

public long? Offset { get; set; }

Password

Redis password (optional).

public string? Password { get; set; }

PollDelayMs

Polling delay in ms when list/stream consumer finds no messages.

public int PollDelayMs { get; set; }

PollTimeoutMs

Batch mode: a batch with entries is sent on once no entry came for this many milliseconds, restarted by every

public int PollTimeoutMs { get; set; }

ProcessingList

A BLPOP/BRPOP consumer moves an item into this list (LMOVE) instead of popping it, and removes it from there after

public string? ProcessingList { get; set; }

Score

Score for sorted set operations.

public double? Score { get; set; }

Start

Range start for LRANGE/ZRANGE operations.

public long? Start { get; set; }

Stop

Range stop for LRANGE/ZRANGE operations.

public long? Stop { get; set; }

StreamApproximate

Use approximate max length for XADD trimming.

public bool StreamApproximate { get; set; }

StreamBlockTimeMs

Block time in ms when no stream entries available.

public int StreamBlockTimeMs { get; set; }

StreamClaimMinIdleMs

A group consumer claims (XAUTOCLAIM) entries of its group that have stayed pending for at least this many

public int? StreamClaimMinIdleMs { get; set; }

StreamMaxLength

Max stream length for XADD (0 = unlimited).

public int StreamMaxLength { get; set; }

StreamName

Stream name for Redis Streams.

public string? StreamName { get; set; }

StreamReadCount

Number of entries to read at a time from a stream.

public int StreamReadCount { get; set; }

StreamStartPosition

Where a stream consumer starts. Unset: at the entries added from now on — for a group, the group is created at the

public string? StreamStartPosition { get; set; }

Transacted

Producer: whether the operation waits for the commit of the enclosing .Transacted() block. PUBLISH and XADD

public bool? Transacted { get; set; }

Ttl

Time-to-live in seconds for SET/EXPIRE. 0 = no expiry.

public int Ttl { get; set; }

UsePattern

Subscribe to as a pattern. PSUBSCRIBE always does; this makes SUBSCRIBE do it too.

public bool UsePattern { get; set; }

Methods

UnknownParameterHint(string)

A connector's own words for a parameter name it does not know — typically a name it used to

protected override string? UnknownParameterHint(string name)

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()