redb.Route.Redis
4.0.1
Prefix Reserved
See the version list below for details.
dotnet add package redb.Route.Redis --version 4.0.1
NuGet\Install-Package redb.Route.Redis -Version 4.0.1
<PackageReference Include="redb.Route.Redis" Version="4.0.1" />
<PackageVersion Include="redb.Route.Redis" Version="4.0.1" />
<PackageReference Include="redb.Route.Redis" />
paket add redb.Route.Redis --version 4.0.1
#r "nuget: redb.Route.Redis, 4.0.1"
#:package redb.Route.Redis@4.0.1
#addin nuget:?package=redb.Route.Redis&version=4.0.1
#tool nuget:?package=redb.Route.Redis&version=4.0.1
redb.Route.Redis
Redis transport for redb.Route. Pub/Sub, Streams, key-value, lists, sorted sets — all Redis data structures as endpoints via StackExchange.Redis.
Installation
dotnet add package redb.Route.Redis
Usage
URI Format
redis://key-or-channel?operation=subscribe&connection=localhost:6379
Fluent DSL
using redb.Route.Redis.Fluent;
// Pub/Sub — subscribe
From(Redis.Subscribe("notifications").Connection("localhost:6379"))
.Log("Received: ${body}")
.To("direct://process");
// Pub/Sub — publish
From("direct://outbound")
.To(Redis.Publish("events").Connection("localhost:6379"));
// Streams — consumer group
From(Redis.XRead("order-stream")
.Connection("localhost:6379")
.ConsumerGroup("processors")
.ConsumerName("node-1")
.StreamReadCount(100))
.To("direct://handle");
// Key-Value
From("direct://cache")
.To(Redis.Set("session:user-123")
.Connection("localhost:6379")
.Ttl(3600));
// Lists
From("direct://enqueue")
.To(Redis.LPush("task-queue").Connection("localhost:6379"));
Fluent Builder API
| Category | Methods |
|---|---|
| Connection | .Connection(), .Database(), .Password(), .ConnectionFactory() |
| Key-Value | Redis.Set(), Redis.Get(), Redis.Del(), Redis.Exists(), Redis.Expire(), Redis.Incr(), Redis.Decr(), Redis.SetNx() |
| Pub/Sub | Redis.Publish(), Redis.Subscribe(), Redis.PSubscribe() |
| Streams | Redis.XAdd(), Redis.XRead(), Redis.XGroup(), .ConsumerGroup(), .ConsumerName(), .StreamMaxLength(), .StreamReadCount(), .StreamBlockTimeMs(), .StreamAutoAck() |
| Lists | Redis.LPush(), Redis.RPush(), Redis.LPop(), Redis.RPop(), Redis.LLen(), Redis.LRange() |
| Options | .Ttl(), .Transacted(), .PollDelay() |
Most builder methods accept both constant values and
IExpressionfor runtime resolution via the expression engine.
Part of
redb.Route — ESB & EIP Framework for .NET
Named connection factory
Keep credentials out of the route URI: register a factory in the context registry and reference it by name. A set-but-unknown name fails loud at startup — a typo can never silently fall back to inline URI parameters.
context.AddToRegistry("prod", new RedisConnectionFactory
{
ConnectionString = "redis.internal:6379",
Password = secrets.RedisPassword,
});
// redis://cache?connectionFactory=prod
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- redb.Route (>= 4.0.1)
- StackExchange.Redis (>= 2.11.8)
-
net8.0
- redb.Route (>= 4.0.1)
- StackExchange.Redis (>= 2.11.8)
-
net9.0
- redb.Route (>= 4.0.1)
- StackExchange.Redis (>= 2.11.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on redb.Route.Redis:
| Package | Downloads |
|---|---|
|
redb.Identity.Core
OAuth 2.1 / OpenID Connect engine for redb.Identity — OpenIddict pipeline on redb.Route, redb-backed stores, MFA, WebAuthn, federation, DataProtection and signing keys. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.7.2 | 269 | 11/13/2026 |
| 4.7.1 | 161 | 11/11/2026 |
| 4.7.0 | 170 | 11/7/2026 |
| 4.6.2 | 170 | 11/5/2026 |
| 4.6.1 | 179 | 11/4/2026 |
| 4.6.0 | 170 | 11/3/2026 |
| 4.5.1 | 169 | 10/30/2026 |
| 4.5.0 | 169 | 10/29/2026 |
| 4.4.2 | 180 | 10/23/2026 |
| 4.4.1 | 172 | 10/21/2026 |
| 4.3.0 | 180 | 10/14/2026 |
| 4.2.3 | 112 | 10/8/2026 |
| 4.2.2 | 178 | 10/5/2026 |
| 4.2.0 | 191 | 9/30/2026 |
| 4.1.1 | 179 | 9/25/2026 |
| 4.1.0 | 183 | 9/21/2026 |
| 4.0.1 | 188 | 9/18/2026 |
| 4.0.0 | 200 | 9/11/2026 |
| 3.7.2 | 199 | 8/26/2026 |