Microsoft.Extensions.Caching.StackExchangeRedis 10.0.0-rc.2.25502.107

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Caching.StackExchangeRedis.
dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis --version 10.0.0-rc.2.25502.107
                    
NuGet\Install-Package Microsoft.Extensions.Caching.StackExchangeRedis -Version 10.0.0-rc.2.25502.107
                    
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.0-rc.2.25502.107" />
                    
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.0-rc.2.25502.107" />
                    
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.0-rc.2.25502.107
                    
#r "nuget: Microsoft.Extensions.Caching.StackExchangeRedis, 10.0.0-rc.2.25502.107"
                    
#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.0-rc.2.25502.107
                    
#: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.0-rc.2.25502.107&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.Extensions.Caching.StackExchangeRedis&version=10.0.0-rc.2.25502.107&prerelease
                    
Install as a Cake Tool

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

NuGet packages (812)

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

Package Downloads
Omnia.Fx.NetCore

Package Description

Reo.Core.DistributedCache.Abstractions

Package Description

Volo.Abp.Caching.StackExchangeRedis

Package Description

Reo.Core.IdentityModel

Package Description

Reo.Core.AutoHistory

Package Description

GitHub repositories (88)

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 10 RC 2, 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 9 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
anjoy8/Blog.Core
💖 ASP.NET Core 8.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
dotnet/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
ZiggyCreatures/FusionCache
FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
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
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)
xiaoyaocz/biliuwp-lite
哔哩哔哩UWP Lite
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
blogifierdotnet/Blogifier
Blogifier is an open-source publishing platform Written in ASP.NET and Blazor WebAssembly. With Blogifier make a personal blog or a website.
abpframework/abp-samples
Sample solutions built with the ABP Framework
Version Downloads Last Updated
10.0.0-rc.2.25502.107 10,546 10/14/2025
10.0.0-rc.1.25451.107 20,644 9/9/2025
10.0.0-preview.7.25380.108 11,612 8/12/2025
10.0.0-preview.6.25358.103 8,189 7/15/2025
10.0.0-preview.5.25277.114 6,659 6/6/2025
10.0.0-preview.4.25258.110 9,666 5/12/2025
10.0.0-preview.3.25172.1 12,644 4/10/2025
9.0.10 454,837 10/14/2025
9.0.9 1,119,353 9/9/2025
9.0.8 1,281,478 8/5/2025
9.0.7 1,045,143 7/8/2025
9.0.6 1,466,419 6/10/2025
9.0.5 1,507,473 5/13/2025
9.0.2 4,028,869 2/11/2025
9.0.1 1,624,810 1/14/2025
9.0.0 3,932,554 11/12/2024
9.0.0-rc.2.24474.3 99,849 10/8/2024
9.0.0-rc.1.24452.1 19,649 9/10/2024
9.0.0-preview.7.24406.2 15,165 8/13/2024
9.0.0-preview.6.24328.4 16,988 7/9/2024
9.0.0-preview.5.24306.11 26,868 6/11/2024
9.0.0-preview.4.24267.6 10,622 5/21/2024
9.0.0-preview.3.24172.13 11,075 4/11/2024
9.0.0-preview.2.24128.4 19,577 3/12/2024
9.0.0-preview.1.24081.5 8,330 2/13/2024
8.0.21 101,885 10/14/2025
8.0.20 271,573 9/9/2025
8.0.19 261,628 8/4/2025
8.0.18 474,875 7/8/2025
8.0.17 372,390 6/10/2025
8.0.16 502,147 5/13/2025
8.0.15 925,418 4/8/2025
8.0.14 690,515 3/11/2025
8.0.13 759,068 2/11/2025
8.0.12 1,129,793 1/14/2025
8.0.11 3,101,694 11/12/2024
8.0.10 6,241,604 10/8/2024
8.0.8 6,809,256 8/13/2024
8.0.7 4,149,912 7/9/2024
8.0.6 4,226,775 5/28/2024
8.0.5 1,471,887 5/14/2024
8.0.4 4,310,962 4/9/2024
8.0.3 3,268,823 3/12/2024
8.0.2 3,218,971 2/13/2024
8.0.1 3,244,664 1/9/2024
8.0.0 6,306,705 11/14/2023
8.0.0-rc.2.23480.2 40,838 10/10/2023
8.0.0-rc.1.23421.29 31,994 9/12/2023
8.0.0-preview.7.23375.9 24,966 8/8/2023
8.0.0-preview.6.23329.11 17,156 7/11/2023
8.0.0-preview.5.23302.2 8,626 6/13/2023
8.0.0-preview.4.23260.4 273,408 5/16/2023
8.0.0-preview.3.23177.8 6,297 4/11/2023
8.0.0-preview.2.23153.2 4,286 3/14/2023
8.0.0-preview.1.23112.2 91,849 2/21/2023
7.0.20 503,947 5/28/2024
7.0.19 152,700 5/14/2024
7.0.18 109,479 4/9/2024
7.0.17 123,122 3/12/2024
7.0.16 186,868 2/13/2024
7.0.15 383,979 1/9/2024
7.0.14 747,824 11/14/2023
7.0.13 1,191,817 10/24/2023
7.0.12 717,749 10/10/2023
7.0.11 1,484,021 9/12/2023
7.0.10 1,887,796 8/8/2023
7.0.9 1,429,276 7/11/2023
7.0.8 1,173,826 6/22/2023
7.0.7 540,680 6/13/2023
7.0.5 3,251,008 4/11/2023
7.0.4 1,693,002 3/14/2023
7.0.3 1,925,125 2/14/2023
7.0.2 1,756,963 1/10/2023
7.0.1 1,040,269 12/13/2022
7.0.0 2,832,412 11/7/2022
7.0.0-rc.2.22476.2 14,294 10/11/2022
7.0.0-rc.1.22427.2 23,294 9/14/2022
7.0.0-preview.7.22376.6 13,653 8/9/2022
7.0.0-preview.6.22330.3 25,048 7/12/2022
7.0.0-preview.5.22303.8 20,189 6/14/2022
7.0.0-preview.4.22251.1 22,263 5/10/2022
7.0.0-preview.3.22178.4 12,029 4/13/2022
7.0.0-preview.2.22153.2 24,802 3/14/2022
7.0.0-preview.1.22109.13 8,718 2/17/2022
6.0.36 376,864 11/12/2024
6.0.35 154,951 10/8/2024
6.0.33 207,372 8/13/2024
6.0.32 168,458 7/9/2024
6.0.31 291,799 5/28/2024
6.0.30 303,388 5/14/2024
6.0.29 453,336 4/9/2024
6.0.28 333,155 3/12/2024
6.0.27 547,053 2/13/2024
6.0.26 392,775 1/9/2024
6.0.25 1,214,664 11/14/2023
6.0.24 327,297 10/24/2023
6.0.23 282,556 10/10/2023
6.0.22 492,016 9/12/2023
6.0.21 893,444 8/8/2023
6.0.20 843,915 7/11/2023
6.0.19 314,532 6/22/2023
6.0.18 464,779 6/13/2023
6.0.16 1,617,973 4/11/2023
6.0.15 1,008,925 3/14/2023
6.0.14 1,043,175 2/14/2023
6.0.13 1,281,401 1/10/2023
6.0.12 1,013,413 12/13/2022
6.0.11 1,862,605 11/7/2022
6.0.10 3,338,229 10/11/2022
6.0.9 2,599,704 9/13/2022
6.0.8 3,474,642 8/9/2022
6.0.7 2,917,933 7/12/2022
6.0.6 2,577,760 6/14/2022
6.0.5 3,559,687 5/10/2022
6.0.4 2,025,891 4/11/2022
6.0.3 3,113,022 3/8/2022
6.0.2 2,350,599 2/8/2022
6.0.1 4,721,237 12/14/2021
6.0.0 3,480,670 11/8/2021
6.0.0-rc.2.21480.10 32,510 10/12/2021
6.0.0-rc.1.21452.15 12,921 9/14/2021
6.0.0-preview.7.21378.6 11,191 8/10/2021
6.0.0-preview.6.21355.2 6,837 7/14/2021
6.0.0-preview.5.21301.17 30,646 6/15/2021
6.0.0-preview.4.21253.5 6,699 5/24/2021
6.0.0-preview.3.21201.13 4,639 4/8/2021
6.0.0-preview.2.21154.6 3,310 3/11/2021 6.0.0-preview.2.21154.6 is deprecated because it is no longer maintained.
6.0.0-preview.1.21103.6 11,720 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.1 14,676,623 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,675,638 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20478.4 11,700 10/13/2020 5.0.0-rc.2.20478.4 is deprecated because it is no longer maintained.
5.0.0-rc.1.20451.7 14,564 9/14/2020 5.0.0-rc.1.20451.7 is deprecated because it is no longer maintained.
5.0.0-preview.8.20407.3 3,046 8/25/2020 5.0.0-preview.8.20407.3 is deprecated because it is no longer maintained.
5.0.0-preview.7.20365.4 4,743 7/21/2020 5.0.0-preview.7.20365.4 is deprecated because it is no longer maintained.
5.0.0-preview.6.20306.1 3,272 6/25/2020 5.0.0-preview.6.20306.1 is deprecated because it is no longer maintained.
5.0.0-preview.5.20278.3 1,607 6/10/2020 5.0.0-preview.5.20278.3 is deprecated because it is no longer maintained.
5.0.0-preview.4.20251.2 7,730 5/18/2020 5.0.0-preview.4.20251.2 is deprecated because it is no longer maintained.
5.0.0-preview.3.20215.2 2,712 4/23/2020 5.0.0-preview.3.20215.2 is deprecated because it is no longer maintained.
5.0.0-preview.2.20160.3 1,103 4/2/2020 5.0.0-preview.2.20160.3 is deprecated because it is no longer maintained.
5.0.0-preview.1.20120.4 4,573 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 759,545 12/13/2022
3.1.31 355,223 11/8/2022
3.1.30 47,370 10/11/2022
3.1.29 31,936 9/13/2022
3.1.28 89,379 8/9/2022
3.1.27 73,262 7/12/2022
3.1.26 70,627 6/14/2022
3.1.25 150,956 5/10/2022
3.1.24 122,502 4/11/2022
3.1.23 130,093 3/8/2022
3.1.22 1,127,837 12/14/2021
3.1.21 361,522 11/7/2021
3.1.20 453,857 10/11/2021
3.1.19 201,748 9/14/2021
3.1.18 570,682 8/10/2021
3.1.17 496,212 7/13/2021
3.1.16 310,840 6/8/2021
3.1.15 282,161 5/11/2021
3.1.14 537,278 4/6/2021
3.1.13 413,892 3/9/2021
3.1.12 460,594 2/9/2021
3.1.11 361,919 1/12/2021
3.1.10 1,119,957 11/9/2020
3.1.9 1,340,009 10/13/2020
3.1.8 1,633,053 9/8/2020
3.1.7 1,422,695 8/11/2020
3.1.6 930,098 7/14/2020
3.1.5 1,590,466 6/9/2020
3.1.4 2,145,238 5/12/2020
3.1.3 1,977,369 3/24/2020
3.1.2 1,022,765 2/18/2020
3.1.1 982,032 1/14/2020
3.1.0 1,192,948 12/3/2019
3.1.0-preview3.19553.2 1,045 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 840 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 2,745 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 18,159 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 6,685 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 109,612 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 489,717 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 1,386 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 2,913 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 4,067 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 3,301 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.
3.0.0-preview6.19304.6 2,430 6/12/2019 3.0.0-preview6.19304.6 is deprecated because it is no longer maintained.
3.0.0-preview5.19227.9 2,455 5/6/2019 3.0.0-preview5.19227.9 is deprecated because it is no longer maintained.
3.0.0-preview4.19216.2 842 4/18/2019 3.0.0-preview4.19216.2 is deprecated because it is no longer maintained.
3.0.0-preview3.19153.1 997 3/6/2019 3.0.0-preview3.19153.1 is deprecated because it is no longer maintained.
3.0.0-preview.19074.2 890 1/29/2019 3.0.0-preview.19074.2 is deprecated because it is no longer maintained.
3.0.0-preview.18572.1 1,173 12/4/2018 3.0.0-preview.18572.1 is deprecated because it is no longer maintained.
2.2.5 2,283,292 5/14/2019 2.2.5 is deprecated because it is no longer maintained.
2.2.0 2,251,526 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 6,353 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.