Soenneker.Redis.Client 11.0.2399

Prefix Reserved
dotnet add package Soenneker.Redis.Client --version 11.0.2399
                    
NuGet\Install-Package Soenneker.Redis.Client -Version 11.0.2399
                    
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="Soenneker.Redis.Client" Version="11.0.2399" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Redis.Client" Version="11.0.2399" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Redis.Client" />
                    
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 Soenneker.Redis.Client --version 11.0.2399
                    
#r "nuget: Soenneker.Redis.Client, 11.0.2399"
                    
#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 Soenneker.Redis.Client@11.0.2399
                    
#: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=Soenneker.Redis.Client&version=11.0.2399
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Redis.Client&version=11.0.2399
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Redis.Client

Provides shared, lazily connected StackExchange.Redis ConnectionMultiplexer instances through dependency injection.

Installation

dotnet add package Soenneker.Redis.Client

Configuration

The parameterless Get() overload reads the connection string from configuration:

{
  "Azure": {
    "Redis": {
      "ConnectionString": "localhost:6379,abortConnect=false"
    }
  }
}

Alternatively, pass a StackExchange.Redis connection string directly to Get(connectionString).

Registration and use

using Microsoft.Extensions.DependencyInjection;
using Soenneker.Redis.Client.Abstract;
using Soenneker.Redis.Client.Registrars;
using StackExchange.Redis;

services.AddRedisClientAsSingleton();

IRedisClient redisClient = serviceProvider.GetRequiredService<IRedisClient>();
ConnectionMultiplexer multiplexer = await redisClient.Get(cancellationToken);
IDatabase database = multiplexer.GetDatabase();

await database.StringSetAsync("orders:42:status", "ready");
RedisValue status = await database.StringGetAsync("orders:42:status");

The singleton registration is the normal choice: ConnectionMultiplexer is designed to be shared. Each distinct connection string is connected once and cached for the lifetime of IRedisClient. The scoped registrar is available when a scope must own and dispose its own connection cache.

The client enables StackExchange.Redis administrative commands for compatibility with the Soenneker server utilities. Restrict the configured Redis credentials and network access accordingly.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Soenneker.Redis.Client:

Package Downloads
Soenneker.Redis.Util

The general purpose utility library leveraging Redis for all of your caching needs

Soenneker.Redis.Client.Server

A utility library for Redis server client accessibility

Soenneker.Librarian.Redis

Librarian document storage backed by Redis using Soenneker.Redis.Client.

Soenneker.Redis.Dump

Redis database export, import, and copy utilities for .NET

Soenneker.Deduplication.Redis

Distributed duplicate suppression backed by Redis.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.2399 479 11/15/2026
11.0.2398 759 11/12/2026
11.0.2397 421 11/11/2026
11.0.2396 446 11/11/2026
11.0.2395 295 11/11/2026
11.0.2394 138 11/11/2026
11.0.2393 81 11/11/2026
11.0.2392 301 11/11/2026
11.0.2391 2,255 11/3/2026
11.0.2390 427 11/3/2026
11.0.2389 888 11/2/2026
11.0.2388 642 10/30/2026
11.0.2387 1,373 10/27/2026
11.0.2386 933 10/26/2026
11.0.2385 134 10/26/2026
11.0.2384 140 10/26/2026
11.0.2383 394 10/26/2026
11.0.2382 397 10/26/2026
11.0.2381 194 10/26/2026
4.0.2380 1,212 10/23/2026
Loading failed

Update dependency Soenneker.Dictionaries.Singletons to 11.0.141 (#3142)