Microsoft.Extensions.Caching.StackExchangeRedis
10.0.0-preview.1.25120.3
Prefix Reserved
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
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="10.0.0-preview.1.25120.3" />
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"
// 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 RedisRedisCacheOptions
: Provides options used for configuring aRedisCache
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 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. |
-
.NETFramework 4.6.2
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Options (>= 10.0.0-preview.1.25080.5)
- StackExchange.Redis (>= 2.7.27)
-
.NETStandard 2.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Options (>= 10.0.0-preview.1.25080.5)
- StackExchange.Redis (>= 2.7.27)
-
net10.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0-preview.1.25080.5)
- Microsoft.Extensions.Options (>= 10.0.0-preview.1.25080.5)
- StackExchange.Redis (>= 2.7.27)
NuGet packages (685)
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 | 478 | 2/25/2025 | |
9.0.2 | 198,723 | 2/11/2025 | |
9.0.1 | 461,576 | 1/14/2025 | |
9.0.0 | 1,374,191 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 85,595 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 14,968 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 10,273 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 15,199 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 12,939 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 6,795 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 8,448 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 13,055 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 6,389 | 2/13/2024 | |
8.0.13 | 69,154 | 2/11/2025 | |
8.0.12 | 261,913 | 1/14/2025 | |
8.0.11 | 1,117,830 | 11/12/2024 | |
8.0.10 | 2,892,652 | 10/8/2024 | |
8.0.8 | 3,675,238 | 8/13/2024 | |
8.0.7 | 2,513,517 | 7/9/2024 | |
8.0.6 | 2,817,087 | 5/28/2024 | |
8.0.5 | 1,013,990 | 5/14/2024 | |
8.0.4 | 2,734,375 | 4/9/2024 | |
8.0.3 | 2,256,653 | 3/12/2024 | |
8.0.2 | 2,278,779 | 2/13/2024 | |
8.0.1 | 2,433,999 | 1/9/2024 | |
8.0.0 | 3,928,587 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 36,228 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 31,345 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 22,657 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 15,357 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 8,113 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 220,081 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 5,733 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 3,950 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 91,156 | 2/21/2023 | |
7.0.20 | 265,727 | 5/28/2024 | |
7.0.19 | 88,836 | 5/14/2024 | |
7.0.18 | 80,874 | 4/9/2024 | |
7.0.17 | 102,008 | 3/12/2024 | |
7.0.16 | 150,780 | 2/13/2024 | |
7.0.15 | 311,823 | 1/9/2024 | |
7.0.14 | 652,623 | 11/14/2023 | |
7.0.13 | 969,194 | 10/24/2023 | |
7.0.12 | 617,132 | 10/10/2023 | |
7.0.11 | 1,296,278 | 9/12/2023 | |
7.0.10 | 1,680,671 | 8/8/2023 | |
7.0.9 | 1,189,231 | 7/11/2023 | |
7.0.8 | 1,100,257 | 6/22/2023 | |
7.0.7 | 484,576 | 6/13/2023 | |
7.0.5 | 2,866,721 | 4/11/2023 | |
7.0.4 | 1,526,584 | 3/14/2023 | |
7.0.3 | 1,757,244 | 2/14/2023 | |
7.0.2 | 1,568,289 | 1/10/2023 | |
7.0.1 | 941,988 | 12/13/2022 | |
7.0.0 | 2,477,477 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 13,498 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 22,074 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 13,072 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 24,582 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 19,955 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 21,539 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 10,858 | 4/13/2022 | |
7.0.0-preview.2.22153.2 | 24,514 | 3/14/2022 | |
7.0.0-preview.1.22109.13 | 8,245 | 2/17/2022 | |
6.0.36 | 98,437 | 11/12/2024 | |
6.0.35 | 76,860 | 10/8/2024 | |
6.0.33 | 130,397 | 8/13/2024 | |
6.0.32 | 114,546 | 7/9/2024 | |
6.0.31 | 201,753 | 5/28/2024 | |
6.0.30 | 196,027 | 5/14/2024 | |
6.0.29 | 330,164 | 4/9/2024 | |
6.0.28 | 229,803 | 3/12/2024 | |
6.0.27 | 438,634 | 2/13/2024 | |
6.0.26 | 361,946 | 1/9/2024 | |
6.0.25 | 939,030 | 11/14/2023 | |
6.0.24 | 282,080 | 10/24/2023 | |
6.0.23 | 245,798 | 10/10/2023 | |
6.0.22 | 431,846 | 9/12/2023 | |
6.0.21 | 730,245 | 8/8/2023 | |
6.0.20 | 727,336 | 7/11/2023 | |
6.0.19 | 284,786 | 6/22/2023 | |
6.0.18 | 369,047 | 6/13/2023 | |
6.0.16 | 1,434,363 | 4/11/2023 | |
6.0.15 | 754,836 | 3/14/2023 | |
6.0.14 | 971,110 | 2/14/2023 | |
6.0.13 | 1,194,569 | 1/10/2023 | |
6.0.12 | 911,587 | 12/13/2022 | |
6.0.11 | 1,710,443 | 11/7/2022 | |
6.0.10 | 3,022,889 | 10/11/2022 | |
6.0.9 | 2,370,399 | 9/13/2022 | |
6.0.8 | 3,217,715 | 8/9/2022 | |
6.0.7 | 2,659,098 | 7/12/2022 | |
6.0.6 | 2,430,256 | 6/14/2022 | |
6.0.5 | 3,162,271 | 5/10/2022 | |
6.0.4 | 1,918,820 | 4/11/2022 | |
6.0.3 | 2,863,860 | 3/8/2022 | |
6.0.2 | 2,108,544 | 2/8/2022 | |
6.0.1 | 4,438,980 | 12/14/2021 | |
6.0.0 | 3,165,220 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 27,197 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 12,564 | 9/14/2021 | |
6.0.0-preview.7.21378.6 | 10,956 | 8/10/2021 | |
6.0.0-preview.6.21355.2 | 6,615 | 7/14/2021 | |
6.0.0-preview.5.21301.17 | 24,039 | 6/15/2021 | |
6.0.0-preview.4.21253.5 | 4,555 | 5/24/2021 | |
6.0.0-preview.3.21201.13 | 4,447 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 3,060 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 11,329 | 2/12/2021 | |
5.0.1 | 13,788,340 | 12/8/2020 | |
5.0.0 | 1,583,158 | 11/9/2020 | |
5.0.0-rc.2.20478.4 | 11,426 | 10/13/2020 | |
5.0.0-rc.1.20451.7 | 13,568 | 9/14/2020 | |
5.0.0-preview.8.20407.3 | 2,564 | 8/25/2020 | |
5.0.0-preview.7.20365.4 | 4,474 | 7/21/2020 | |
5.0.0-preview.6.20306.1 | 3,009 | 6/25/2020 | |
5.0.0-preview.5.20278.3 | 1,345 | 6/10/2020 | |
5.0.0-preview.4.20251.2 | 7,450 | 5/18/2020 | |
5.0.0-preview.3.20215.2 | 2,432 | 4/23/2020 | |
5.0.0-preview.2.20160.3 | 836 | 4/2/2020 | |
5.0.0-preview.1.20120.4 | 4,303 | 3/16/2020 | |
3.1.32 | 544,484 | 12/13/2022 | |
3.1.31 | 142,953 | 11/8/2022 | |
3.1.30 | 41,916 | 10/11/2022 | |
3.1.29 | 27,705 | 9/13/2022 | |
3.1.28 | 84,160 | 8/9/2022 | |
3.1.27 | 68,153 | 7/12/2022 | |
3.1.26 | 66,372 | 6/14/2022 | |
3.1.25 | 128,041 | 5/10/2022 | |
3.1.24 | 108,938 | 4/11/2022 | |
3.1.23 | 122,762 | 3/8/2022 | |
3.1.22 | 897,354 | 12/14/2021 | |
3.1.21 | 348,650 | 11/7/2021 | |
3.1.20 | 345,017 | 10/11/2021 | |
3.1.19 | 176,038 | 9/14/2021 | |
3.1.18 | 531,059 | 8/10/2021 | |
3.1.17 | 484,532 | 7/13/2021 | |
3.1.16 | 282,005 | 6/8/2021 | |
3.1.15 | 270,314 | 5/11/2021 | |
3.1.14 | 516,156 | 4/6/2021 | |
3.1.13 | 404,221 | 3/9/2021 | |
3.1.12 | 451,869 | 2/9/2021 | |
3.1.11 | 352,953 | 1/12/2021 | |
3.1.10 | 1,070,774 | 11/9/2020 | |
3.1.9 | 1,299,582 | 10/13/2020 | |
3.1.8 | 1,585,268 | 9/8/2020 | |
3.1.7 | 1,373,261 | 8/11/2020 | |
3.1.6 | 895,599 | 7/14/2020 | |
3.1.5 | 1,537,343 | 6/9/2020 | |
3.1.4 | 2,047,139 | 5/12/2020 | |
3.1.3 | 1,887,349 | 3/24/2020 | |
3.1.2 | 965,789 | 2/18/2020 | |
3.1.1 | 964,807 | 1/14/2020 | |
3.1.0 | 1,116,837 | 12/3/2019 | |
3.1.0-preview3.19553.2 | 800 | 11/13/2019 | |
3.1.0-preview2.19525.4 | 584 | 11/1/2019 | |
3.1.0-preview1.19506.1 | 2,487 | 10/15/2019 | |
3.0.3 | 15,717 | 2/18/2020 | |
3.0.2 | 5,056 | 1/14/2020 | |
3.0.1 | 105,179 | 11/18/2019 | |
3.0.0 | 469,839 | 9/23/2019 | |
3.0.0-rc1.19456.10 | 1,129 | 9/16/2019 | |
3.0.0-preview9.19423.4 | 2,660 | 9/4/2019 | |
3.0.0-preview8.19405.4 | 3,764 | 8/13/2019 | |
3.0.0-preview7.19362.4 | 3,040 | 7/23/2019 | |
3.0.0-preview6.19304.6 | 2,169 | 6/12/2019 | |
3.0.0-preview5.19227.9 | 2,203 | 5/6/2019 | |
3.0.0-preview4.19216.2 | 583 | 4/18/2019 | |
3.0.0-preview3.19153.1 | 730 | 3/6/2019 | |
3.0.0-preview.19074.2 | 615 | 1/29/2019 | |
3.0.0-preview.18572.1 | 905 | 12/4/2018 | |
2.2.5 | 2,167,760 | 5/14/2019 | |
2.2.0 | 2,052,326 | 12/3/2018 | |
2.2.0-preview3-35497 | 5,851 | 10/17/2018 |