TransportR.Storage.Redis 0.6.0

dotnet add package TransportR.Storage.Redis --version 0.6.0
                    
NuGet\Install-Package TransportR.Storage.Redis -Version 0.6.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.6.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.6.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.6.0
                    
#r "nuget: TransportR.Storage.Redis, 0.6.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.6.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.6.0
                    
Install as a Cake Addin
#tool nuget:?package=TransportR.Storage.Redis&version=0.6.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

builder.Services.AddDataHub()
    .UseRedisStore("localhost:6379")
    .UseAffinityHandoff()
    .Build();

Features

  • Client registrations: kept for ConnectedTtlSeconds (3600 s by default) while the client is connected, and for DisconnectedGraceSeconds (300 s by default) once its connection drops. Each 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.

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 level (for SignalR connections).
  • The per-transfer progress counters are not stored here; see "High Availability" in TransportRArchitecture.md.

Dependencies

  • TransportR.Hub.SignalR — 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.6.0 44 10/16/2026
0.5.1 84 10/12/2026
0.5.0 85 10/12/2026
0.4.0 86 10/10/2026
0.3.1 92 10/2/2026
0.3.0 90 10/2/2026
0.2.0 97 9/30/2026
0.1.0 96 9/27/2026