VOOZH about

URL: https://www.nuget.org/packages/Microsoft.Extensions.Caching.StackExchangeRedis

⇱ NuGet Gallery | Microsoft.Extensions.Caching.StackExchangeRedis 10.0.9




👁 Image
Microsoft.Extensions.Caching.StackExchangeRedis 10.0.9

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis --version 10.0.9
 
 
NuGet\Install-Package Microsoft.Extensions.Caching.StackExchangeRedis -Version 10.0.9
 
 
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="Microsoft.Extensions.Caching.StackExchangeRedis" Version="10.0.9" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="10.0.9" />
 
Directory.Packages.props
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" />
 
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 Microsoft.Extensions.Caching.StackExchangeRedis --version 10.0.9
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Microsoft.Extensions.Caching.StackExchangeRedis, 10.0.9"
 
 
#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 Microsoft.Extensions.Caching.StackExchangeRedis@10.0.9
 
 
#: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=Microsoft.Extensions.Caching.StackExchangeRedis&version=10.0.9
 
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Caching.StackExchangeRedis&version=10.0.9
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

About

Microsoft.Extensions.Caching.StackExchangeRedis provides a distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using Redis.

How to Use

To use Microsoft.Extensions.Caching.StackExchangeRedis, follow these steps:

Installation

dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis

Configuration

To configure the Redis cache in your app, use the AddStackExchangeRedisCache extension method. Here's an example:

var builder = WebApplication.CreateBuilder();

builder.Services.AddStackExchangeRedisCache(options =>
{
 options.Configuration = builder.Configuration.GetConnectionString("MyRedisConStr");
 options.InstanceName = "MyCache";
});

Main Types

  • RedisCache: Provides a distributed cache implementation using Redis
  • RedisCacheOptions: Provides options used for configuring a RedisCache

Additional Documentation

For additional documentation and examples, refer to the official documentation on using the Distributed Redis Cache in ASP.NET Core.

Feedback & Contributing

Microsoft.Extensions.Caching.StackExchangeRedis is released as open-source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 is compatible.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1.0K)

Showing the top 5 NuGet packages that depend on Microsoft.Extensions.Caching.StackExchangeRedis:

Package Downloads
DH.Core

DH框架基类核心库

GuoKun.CPS

国坤CPS库

Omnia.Fx.NetCore

Package Description

Volo.Abp.Caching.StackExchangeRedis

Package Description

Reo.Core.DistributedCache.Abstractions

Package Description

GitHub repositories (101)

Showing the top 20 popular GitHub repositories that depend on Microsoft.Extensions.Caching.StackExchangeRedis:

Repository Stars
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
dotnet/AspNetCore.Docs
Documentation for ASP.NET Core
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 11, 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
OrchardCMS/OrchardCore
Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
fullstackhero/dotnet-starter-kit
Production Grade Cloud-Ready .NET 10 Starter Kit (Web API + React Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
anjoy8/Blog.Core
💖 ASP.NET Core 8.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
ZiggyCreatures/FusionCache
FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
Arcenox-co/TickerQ
TickerQ is a fast, reflection-free background task scheduler for .NET built with source generators, EF Core integration, cron + time-based execution, and a real-time dashboard.
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
aspnetrun/run-aspnetcore-microservices
Microservices on .NET platforms used ASP.NET Web API, Docker, RabbitMQ, MassTransit, Grpc, Yarp API Gateway, PostgreSQL, Redis, SQLite, SqlServer, Marten, Entity Framework Core, CQRS, MediatR, DDD, Vertical and Clean Architecture implementation with using latest features of .NET 8 and C# 12
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
dotnetcore/osharp
OSharp是一个基于.Net6.0的快速开发框架,框架对 AspNetCore 的配置、依赖注入、日志、缓存、实体框架、Mvc(WebApi)、身份认证、功能权限、数据权限等模块进行更高一级的自动化封装,并规范了一套业务实现的代码结构与操作流程,使 .Net 框架更易于应用到实际项目开发中。
vietnam-devs/coolstore-microservices
A full-stack .NET microservices build on Dapr and Tye
oqtane/oqtane.framework
Oqtane is an open-source developer productivity platform for building modern .NET applications and websites that run on Web, Desktop and Mobile.
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
Azure/data-api-builder
Data API builder provides modern REST, GraphQL endpoints and MCP tools to your Azure Databases and on-prem stores.
Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2
An ASP.NET Core Web App which lets sign-in users (including in your org, many orgs, orgs + personal accounts, sovereign clouds) and call Web APIs (including Microsoft Graph)
Version Downloads Last Updated
11.0.0-preview.5.26302.115 1,088 6/9/2026
11.0.0-preview.4.26230.115 2,190 5/12/2026
11.0.0-preview.3.26207.106 3,023 4/14/2026
11.0.0-preview.2.26159.112 11,248 3/10/2026
11.0.0-preview.1.26104.118 16,531 2/10/2026
10.0.9 200,534 6/9/2026
10.0.8 1,460,826 5/12/2026
10.0.7 2,162,201 4/21/2026
10.0.6 616,913 4/14/2026
10.0.5 2,646,016 3/12/2026
10.0.4 242,536 3/10/2026
9.0.17 7,952 6/9/2026
9.0.16 74,864 5/12/2026
9.0.15 257,060 4/14/2026
9.0.14 212,642 3/10/2026
9.0.13 230,208 2/10/2026
8.0.28 18,318 6/9/2026
8.0.27 72,600 5/12/2026
8.0.26 183,240 4/14/2026
8.0.25 205,218 3/10/2026
Loading failed