Microsoft.Extensions.Caching.StackExchangeRedis 10.0.0-preview.1.25120.3

Prefix Reserved
This is a prerelease version of Microsoft.Extensions.Caching.StackExchangeRedis.
dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis --version 10.0.0-preview.1.25120.3                
NuGet\Install-Package Microsoft.Extensions.Caching.StackExchangeRedis -Version 10.0.0-preview.1.25120.3                
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-preview.1.25120.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Extensions.Caching.StackExchangeRedis --version 10.0.0-preview.1.25120.3                
#r "nuget: Microsoft.Extensions.Caching.StackExchangeRedis, 10.0.0-preview.1.25120.3"                
#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.
// Install Microsoft.Extensions.Caching.StackExchangeRedis as a Cake Addin
#addin nuget:?package=Microsoft.Extensions.Caching.StackExchangeRedis&version=10.0.0-preview.1.25120.3&prerelease

// Install Microsoft.Extensions.Caching.StackExchangeRedis as a Cake Tool
#tool nuget:?package=Microsoft.Extensions.Caching.StackExchangeRedis&version=10.0.0-preview.1.25120.3&prerelease                

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. 
.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 (687)

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

Showing the top 5 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 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.
Version Downloads Last updated
10.0.0-preview.1.25120.3 681 2/25/2025
9.0.2 246,491 2/11/2025
9.0.1 487,058 1/14/2025
9.0.0 1,416,076 11/12/2024
9.0.0-rc.2.24474.3 86,020 10/8/2024
9.0.0-rc.1.24452.1 15,114 9/10/2024
9.0.0-preview.7.24406.2 10,288 8/13/2024
9.0.0-preview.6.24328.4 15,230 7/9/2024
9.0.0-preview.5.24306.11 13,142 6/11/2024
9.0.0-preview.4.24267.6 6,853 5/21/2024
9.0.0-preview.3.24172.13 8,521 4/11/2024
9.0.0-preview.2.24128.4 13,180 3/12/2024
9.0.0-preview.1.24081.5 6,409 2/13/2024
8.0.13 89,151 2/11/2025
8.0.12 278,518 1/14/2025
8.0.11 1,149,501 11/12/2024
8.0.10 2,946,557 10/8/2024
8.0.8 3,717,950 8/13/2024
8.0.7 2,535,246 7/9/2024
8.0.6 2,838,605 5/28/2024
8.0.5 1,020,524 5/14/2024
8.0.4 2,755,454 4/9/2024
8.0.3 2,271,640 3/12/2024
8.0.2 2,294,176 2/13/2024
8.0.1 2,445,040 1/9/2024
8.0.0 3,959,002 11/14/2023
8.0.0-rc.2.23480.2 36,284 10/10/2023
8.0.0-rc.1.23421.29 31,359 9/12/2023
8.0.0-preview.7.23375.9 22,688 8/8/2023
8.0.0-preview.6.23329.11 15,379 7/11/2023
8.0.0-preview.5.23302.2 8,119 6/13/2023
8.0.0-preview.4.23260.4 221,805 5/16/2023
8.0.0-preview.3.23177.8 5,745 4/11/2023
8.0.0-preview.2.23153.2 3,950 3/14/2023
8.0.0-preview.1.23112.2 91,160 2/21/2023
7.0.20 268,310 5/28/2024
7.0.19 89,850 5/14/2024
7.0.18 81,223 4/9/2024
7.0.17 102,221 3/12/2024
7.0.16 151,468 2/13/2024
7.0.15 312,901 1/9/2024
7.0.14 654,251 11/14/2023
7.0.13 972,624 10/24/2023
7.0.12 618,159 10/10/2023
7.0.11 1,298,939 9/12/2023
7.0.10 1,684,170 8/8/2023
7.0.9 1,191,926 7/11/2023
7.0.8 1,101,252 6/22/2023
7.0.7 485,488 6/13/2023
7.0.5 2,872,307 4/11/2023
7.0.4 1,529,634 3/14/2023
7.0.3 1,759,668 2/14/2023
7.0.2 1,570,411 1/10/2023
7.0.1 943,382 12/13/2022
7.0.0 2,481,858 11/7/2022
7.0.0-rc.2.22476.2 13,516 10/11/2022
7.0.0-rc.1.22427.2 22,089 9/14/2022
7.0.0-preview.7.22376.6 13,079 8/9/2022
7.0.0-preview.6.22330.3 24,586 7/12/2022
7.0.0-preview.5.22303.8 19,956 6/14/2022
7.0.0-preview.4.22251.1 21,547 5/10/2022
7.0.0-preview.3.22178.4 10,864 4/13/2022
7.0.0-preview.2.22153.2 24,520 3/14/2022
7.0.0-preview.1.22109.13 8,249 2/17/2022
6.0.36 100,684 11/12/2024
6.0.35 78,371 10/8/2024
6.0.33 131,468 8/13/2024
6.0.32 115,482 7/9/2024
6.0.31 203,231 5/28/2024
6.0.30 197,245 5/14/2024
6.0.29 332,289 4/9/2024
6.0.28 231,307 3/12/2024
6.0.27 440,044 2/13/2024
6.0.26 362,465 1/9/2024
6.0.25 942,961 11/14/2023
6.0.24 282,590 10/24/2023
6.0.23 246,293 10/10/2023
6.0.22 432,859 9/12/2023
6.0.21 732,462 8/8/2023
6.0.20 729,439 7/11/2023
6.0.19 285,451 6/22/2023
6.0.18 369,906 6/13/2023
6.0.16 1,436,494 4/11/2023
6.0.15 758,964 3/14/2023
6.0.14 972,421 2/14/2023
6.0.13 1,195,836 1/10/2023
6.0.12 913,137 12/13/2022
6.0.11 1,712,494 11/7/2022
6.0.10 3,028,134 10/11/2022
6.0.9 2,374,230 9/13/2022
6.0.8 3,221,398 8/9/2022
6.0.7 2,663,348 7/12/2022
6.0.6 2,432,037 6/14/2022
6.0.5 3,171,286 5/10/2022
6.0.4 1,921,140 4/11/2022
6.0.3 2,868,097 3/8/2022
6.0.2 2,112,804 2/8/2022
6.0.1 4,442,867 12/14/2021
6.0.0 3,169,459 11/8/2021
6.0.0-rc.2.21480.10 27,316 10/12/2021
6.0.0-rc.1.21452.15 12,574 9/14/2021
6.0.0-preview.7.21378.6 10,962 8/10/2021
6.0.0-preview.6.21355.2 6,619 7/14/2021
6.0.0-preview.5.21301.17 24,103 6/15/2021
6.0.0-preview.4.21253.5 4,575 5/24/2021
6.0.0-preview.3.21201.13 4,454 4/8/2021
6.0.0-preview.2.21154.6 3,068 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,337 2/12/2021 6.0.0-preview.1.21103.6 is deprecated because it is no longer maintained.
5.0.1 13,802,232 12/8/2020 5.0.1 is deprecated because it is no longer maintained.
5.0.0 1,584,171 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20478.4 11,434 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 13,636 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 2,574 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,482 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,016 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,351 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,458 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,440 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 842 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,311 3/16/2020 5.0.0-preview.1.20120.4 is deprecated because it is no longer maintained.
3.1.32 547,766 12/13/2022
3.1.31 143,650 11/8/2022
3.1.30 42,080 10/11/2022
3.1.29 27,750 9/13/2022
3.1.28 84,252 8/9/2022
3.1.27 68,321 7/12/2022
3.1.26 66,420 6/14/2022
3.1.25 128,124 5/10/2022
3.1.24 108,992 4/11/2022
3.1.23 122,848 3/8/2022
3.1.22 901,134 12/14/2021
3.1.21 348,798 11/7/2021
3.1.20 346,403 10/11/2021
3.1.19 176,234 9/14/2021
3.1.18 531,849 8/10/2021
3.1.17 484,890 7/13/2021
3.1.16 282,317 6/8/2021
3.1.15 270,461 5/11/2021
3.1.14 516,498 4/6/2021
3.1.13 404,323 3/9/2021
3.1.12 451,967 2/9/2021
3.1.11 353,078 1/12/2021
3.1.10 1,071,371 11/9/2020
3.1.9 1,300,054 10/13/2020
3.1.8 1,586,076 9/8/2020
3.1.7 1,373,869 8/11/2020
3.1.6 896,066 7/14/2020
3.1.5 1,538,192 6/9/2020
3.1.4 2,049,126 5/12/2020
3.1.3 1,888,648 3/24/2020
3.1.2 966,407 2/18/2020
3.1.1 965,002 1/14/2020
3.1.0 1,117,967 12/3/2019
3.1.0-preview3.19553.2 806 11/13/2019 3.1.0-preview3.19553.2 is deprecated because it is no longer maintained.
3.1.0-preview2.19525.4 592 11/1/2019 3.1.0-preview2.19525.4 is deprecated because it is no longer maintained.
3.1.0-preview1.19506.1 2,492 10/15/2019 3.1.0-preview1.19506.1 is deprecated because it is no longer maintained.
3.0.3 15,731 2/18/2020 3.0.3 is deprecated because it is no longer maintained.
3.0.2 5,064 1/14/2020 3.0.2 is deprecated because it is no longer maintained.
3.0.1 105,204 11/18/2019 3.0.1 is deprecated because it is no longer maintained.
3.0.0 470,166 9/23/2019 3.0.0 is deprecated because it is no longer maintained.
3.0.0-rc1.19456.10 1,134 9/16/2019 3.0.0-rc1.19456.10 is deprecated because it is no longer maintained.
3.0.0-preview9.19423.4 2,667 9/4/2019 3.0.0-preview9.19423.4 is deprecated because it is no longer maintained.
3.0.0-preview8.19405.4 3,771 8/13/2019 3.0.0-preview8.19405.4 is deprecated because it is no longer maintained.
3.0.0-preview7.19362.4 3,047 7/23/2019 3.0.0-preview7.19362.4 is deprecated because it is no longer maintained.
3.0.0-preview6.19304.6 2,174 6/12/2019 3.0.0-preview6.19304.6 is deprecated because it is no longer maintained.
3.0.0-preview5.19227.9 2,210 5/6/2019 3.0.0-preview5.19227.9 is deprecated because it is no longer maintained.
3.0.0-preview4.19216.2 590 4/18/2019 3.0.0-preview4.19216.2 is deprecated because it is no longer maintained.
3.0.0-preview3.19153.1 738 3/6/2019 3.0.0-preview3.19153.1 is deprecated because it is no longer maintained.
3.0.0-preview.19074.2 620 1/29/2019 3.0.0-preview.19074.2 is deprecated because it is no longer maintained.
3.0.0-preview.18572.1 910 12/4/2018 3.0.0-preview.18572.1 is deprecated because it is no longer maintained.
2.2.5 2,170,209 5/14/2019 2.2.5 is deprecated because it is no longer maintained.
2.2.0 2,054,559 12/3/2018 2.2.0 is deprecated because it is no longer maintained.
2.2.0-preview3-35497 5,856 10/17/2018 2.2.0-preview3-35497 is deprecated because it is no longer maintained.