Soenneker.Redis.Client 4.0.2303

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Redis.Client --version 4.0.2303
                    
NuGet\Install-Package Soenneker.Redis.Client -Version 4.0.2303
                    
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="4.0.2303" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Redis.Client" Version="4.0.2303" />
                    
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 4.0.2303
                    
#r "nuget: Soenneker.Redis.Client, 4.0.2303"
                    
#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@4.0.2303
                    
#: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=4.0.2303
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Redis.Client&version=4.0.2303
                    
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 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 (4)

Showing the top 4 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.Deduplication.Redis

Distributed duplicate suppression backed by Redis.

Soenneker.Redis.Dump

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.2307 288 9/1/2026
4.0.2306 211 8/31/2026
4.0.2305 339 8/31/2026
4.0.2304 278 8/31/2026
4.0.2303 331 8/30/2026
4.0.2302 76 8/30/2026
4.0.2301 150 8/30/2026
4.0.2300 179 8/30/2026
4.0.2299 475 8/30/2026
4.0.2298 106 8/30/2026
4.0.2297 250 8/29/2026
4.0.2296 120 8/29/2026
4.0.2295 117 8/29/2026
4.0.2294 1,200 8/26/2026
4.0.2293 281 8/26/2026
4.0.2292 244 8/26/2026
4.0.2291 688 8/22/2026
4.0.2290 532 8/21/2026
4.0.2289 495 8/21/2026
4.0.2288 941 8/18/2026
Loading failed

Restore Redis administrative compatibility