Naravel.Redis 0.2.0

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

Naravel.Redis

NuGet Downloads .NET 10 License: MIT

Named, shared Redis connections for Naravel modules: one StackExchange.Redis multiplexer per name, owned and disposed by one manager.

Fact Detail
Install dotnet add package Naravel.Redis
Targets .NET 10
Needs Naravel.Foundation, which NuGet installs with it (StackExchange.Redis comes with the package)
Used by Naravel.Cache.Redis and Naravel.Queue.Redis borrow their connection from it

What you get

  • Named connections. Each store under Redis:Stores:<name> is a ConnectionString; Connection() returns the default and Connection("name") another.
  • The real StackExchange.Redis. You get the IConnectionMultiplexer; commands are never wrapped.
  • One owner. One multiplexer per name, owned and disposed by one manager.

Quick start

{ "Redis": { "Default": "main", "Stores": { "main": { "ConnectionString": "localhost:6379" } } } }
using Naravel.Redis;

builder.Services.AddNaravelRedis(builder.Configuration);

app.MapPost("/visits", async (RedisManager redis) =>
{
    var db = redis.Connection().Multiplexer.GetDatabase();   // the real StackExchange.Redis IDatabase
    return Results.Ok(new { count = await db.StringIncrementAsync("visits") });
});

Learn more

Part of Naravel: Laravel's names, .NET's type system. All Naravel packages share one version.

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 (2)

Showing the top 2 NuGet packages that depend on Naravel.Redis:

Package Downloads
Naravel.Queue.Redis

Redis queue driver for Naravel.Queue, built on StackExchange.Redis - priority buckets, delayed jobs and automatic reclaim of jobs left behind by a crashed worker.

Naravel.Cache.Redis

Redis cache and distributed-lock providers for Naravel.Cache.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 279 11/13/2026
0.1.1 129 11/2/2026
0.1.0 129 11/1/2026