TransportR.Storage.Redis 0.14.0

dotnet add package TransportR.Storage.Redis --version 0.14.0
                    
NuGet\Install-Package TransportR.Storage.Redis -Version 0.14.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TransportR.Storage.Redis" Version="0.14.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TransportR.Storage.Redis" Version="0.14.0" />
                    
Directory.Packages.props
<PackageReference Include="TransportR.Storage.Redis" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TransportR.Storage.Redis --version 0.14.0
                    
#r "nuget: TransportR.Storage.Redis, 0.14.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TransportR.Storage.Redis@0.14.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TransportR.Storage.Redis&version=0.14.0
                    
Install as a Cake Addin
#tool nuget:?package=TransportR.Storage.Redis&version=0.14.0
                    
Install as a Cake Tool

TransportR.Storage.Redis

Redis state store implementation for TransportR High Availability deployments.

Purpose

Provides RedisStateStore, an IStateStore implementation that stores client registrations and transfer sessions in Redis, so that several DataHub instances can share them.

Usage

// Connection string
builder.Services.AddDataHub()
    .UseRedisStore("localhost:6379")
    .UseAffinityHandoff();

// Existing StackExchange.Redis IConnectionMultiplexer in DI (e.g. .NET Aspire or shared cache),
// with an isolated key prefix:
builder.Services.AddDataHub()
    .UseRedisStore(options => options.KeyPrefix = "myapp:")
    .UseAffinityHandoff();

UseRedisStore accepts a connection string, ConfigurationOptions, an IConnectionMultiplexer instance, or an existing IConnectionMultiplexer in DI, each with an optional Action<RedisStateStoreOptions> to customize KeyPrefix (default "transportr:"). The connectionString and ConfigurationOptions overloads keep their IConnectionMultiplexer private to RedisStateStore (without registering it in the host's DI container) and dispose it on shutdown.

Features

  • Client registrations: kept for ConnectedTtlSeconds (3600 s by default) while the client is connected, and for DisconnectedGraceSeconds (300 s by default) once its events stream ends. Each presence heartbeat pushes the expiry back.
  • Transfer sessions: expire at the session's ExpiresAtUtc; heartbeats extend them.
  • Secondary index: connection id → client id, with the same expiry as the registration.
  • Redis Cluster compatible: uses only single-key commands and pipelined reads (no multi-key MGET / CROSSSLOT).

Key Structure

Key Purpose Expiry
transportr:clients:{clientId} Client registration connected TTL, or the grace period once disconnected
transportr:conn:{connectionId} ConnectionId → ClientId index same as the registration
transportr:client_ids Set of known client ids, read by discovery none; members whose registration expired are removed on read
transportr:sessions:{transferId} Transfer session (HA routing) session ExpiresAtUtc

Requirements

  • Tested against Redis 7.0: the test suite runs on a redis:7.0 container.
  • Sticky sessions at the load balancer, because the per-transfer progress counters are not stored here ("High Availability" in TransportRArchitecture.md).

Dependencies

  • TransportR.Hub — DataHubBuilder
  • StackExchange.Redis — Redis client
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.14.0 54 11/24/2026
0.13.0 89 11/20/2026
0.12.1 86 11/18/2026
0.12.0 119 11/14/2026