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 | 438 | 2/25/2025 | |
9.0.2 | 186,008 | 2/11/2025 | |
9.0.1 | 453,363 | 1/14/2025 | |
9.0.0 | 1,361,371 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 85,493 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 14,917 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 10,271 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 15,199 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 12,908 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 6,785 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 8,435 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 13,016 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 6,380 | 2/13/2024 | |
8.0.13 | 64,973 | 2/11/2025 | |
8.0.12 | 256,751 | 1/14/2025 | |
8.0.11 | 1,107,589 | 11/12/2024 | |
8.0.10 | 2,876,277 | 10/8/2024 | |
8.0.8 | 3,662,857 | 8/13/2024 | |
8.0.7 | 2,506,889 | 7/9/2024 | |
8.0.6 | 2,811,097 | 5/28/2024 | |
8.0.5 | 1,011,766 | 5/14/2024 | |
8.0.4 | 2,728,466 | 4/9/2024 | |
8.0.3 | 2,252,835 | 3/12/2024 | |
8.0.2 | 2,275,042 | 2/13/2024 | |
8.0.1 | 2,430,464 | 1/9/2024 | |
8.0.0 | 3,920,201 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 36,220 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 31,339 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 22,652 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 15,355 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 8,111 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 219,946 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 5,724 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 3,950 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 91,144 | 2/21/2023 | |
7.0.20 | 265,058 | 5/28/2024 | |
7.0.19 | 88,595 | 5/14/2024 | |
7.0.18 | 80,764 | 4/9/2024 | |
7.0.17 | 101,959 | 3/12/2024 | |
7.0.16 | 150,479 | 2/13/2024 | |
7.0.15 | 311,506 | 1/9/2024 | |
7.0.14 | 652,278 | 11/14/2023 | |
7.0.13 | 968,222 | 10/24/2023 | |
7.0.12 | 616,907 | 10/10/2023 | |
7.0.11 | 1,295,567 | 9/12/2023 | |
7.0.10 | 1,679,645 | 8/8/2023 | |
7.0.9 | 1,188,552 | 7/11/2023 | |
7.0.8 | 1,099,988 | 6/22/2023 | |
7.0.7 | 484,348 | 6/13/2023 | |
7.0.5 | 2,865,064 | 4/11/2023 | |
7.0.4 | 1,526,254 | 3/14/2023 | |
7.0.3 | 1,756,695 | 2/14/2023 | |
7.0.2 | 1,567,627 | 1/10/2023 | |
7.0.1 | 941,552 | 12/13/2022 | |
7.0.0 | 2,476,158 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 13,498 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 22,072 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 13,071 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 24,582 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 19,954 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 21,539 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 10,852 | 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 | 97,608 | 11/12/2024 | |
6.0.35 | 76,324 | 10/8/2024 | |
6.0.33 | 130,065 | 8/13/2024 | |
6.0.32 | 114,354 | 7/9/2024 | |
6.0.31 | 201,237 | 5/28/2024 | |
6.0.30 | 195,780 | 5/14/2024 | |
6.0.29 | 329,566 | 4/9/2024 | |
6.0.28 | 229,190 | 3/12/2024 | |
6.0.27 | 438,252 | 2/13/2024 | |
6.0.26 | 361,834 | 1/9/2024 | |
6.0.25 | 938,184 | 11/14/2023 | |
6.0.24 | 281,943 | 10/24/2023 | |
6.0.23 | 245,645 | 10/10/2023 | |
6.0.22 | 431,475 | 9/12/2023 | |
6.0.21 | 729,624 | 8/8/2023 | |
6.0.20 | 726,658 | 7/11/2023 | |
6.0.19 | 284,641 | 6/22/2023 | |
6.0.18 | 368,801 | 6/13/2023 | |
6.0.16 | 1,433,884 | 4/11/2023 | |
6.0.15 | 754,115 | 3/14/2023 | |
6.0.14 | 970,698 | 2/14/2023 | |
6.0.13 | 1,194,322 | 1/10/2023 | |
6.0.12 | 911,057 | 12/13/2022 | |
6.0.11 | 1,709,951 | 11/7/2022 | |
6.0.10 | 3,021,405 | 10/11/2022 | |
6.0.9 | 2,369,601 | 9/13/2022 | |
6.0.8 | 3,216,821 | 8/9/2022 | |
6.0.7 | 2,658,271 | 7/12/2022 | |
6.0.6 | 2,429,540 | 6/14/2022 | |
6.0.5 | 3,159,359 | 5/10/2022 | |
6.0.4 | 1,918,171 | 4/11/2022 | |
6.0.3 | 2,862,808 | 3/8/2022 | |
6.0.2 | 2,107,502 | 2/8/2022 | |
6.0.1 | 4,437,975 | 12/14/2021 | |
6.0.0 | 3,164,177 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 27,182 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 12,562 | 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,550 | 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,784,591 | 12/8/2020 | |
5.0.0 | 1,582,880 | 11/9/2020 | |
5.0.0-rc.2.20478.4 | 11,426 | 10/13/2020 | |
5.0.0-rc.1.20451.7 | 13,560 | 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 | 835 | 4/2/2020 | |
5.0.0-preview.1.20120.4 | 4,303 | 3/16/2020 | |
3.1.32 | 543,275 | 12/13/2022 | |
3.1.31 | 142,770 | 11/8/2022 | |
3.1.30 | 41,875 | 10/11/2022 | |
3.1.29 | 27,697 | 9/13/2022 | |
3.1.28 | 84,110 | 8/9/2022 | |
3.1.27 | 68,144 | 7/12/2022 | |
3.1.26 | 66,364 | 6/14/2022 | |
3.1.25 | 128,031 | 5/10/2022 | |
3.1.24 | 108,937 | 4/11/2022 | |
3.1.23 | 122,716 | 3/8/2022 | |
3.1.22 | 895,992 | 12/14/2021 | |
3.1.21 | 348,619 | 11/7/2021 | |
3.1.20 | 344,345 | 10/11/2021 | |
3.1.19 | 175,947 | 9/14/2021 | |
3.1.18 | 530,755 | 8/10/2021 | |
3.1.17 | 484,507 | 7/13/2021 | |
3.1.16 | 281,929 | 6/8/2021 | |
3.1.15 | 270,298 | 5/11/2021 | |
3.1.14 | 516,072 | 4/6/2021 | |
3.1.13 | 404,187 | 3/9/2021 | |
3.1.12 | 451,755 | 2/9/2021 | |
3.1.11 | 352,924 | 1/12/2021 | |
3.1.10 | 1,070,697 | 11/9/2020 | |
3.1.9 | 1,299,400 | 10/13/2020 | |
3.1.8 | 1,585,143 | 9/8/2020 | |
3.1.7 | 1,373,159 | 8/11/2020 | |
3.1.6 | 895,448 | 7/14/2020 | |
3.1.5 | 1,537,041 | 6/9/2020 | |
3.1.4 | 2,046,474 | 5/12/2020 | |
3.1.3 | 1,887,049 | 3/24/2020 | |
3.1.2 | 965,664 | 2/18/2020 | |
3.1.1 | 964,727 | 1/14/2020 | |
3.1.0 | 1,116,489 | 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,486 | 10/15/2019 | |
3.0.3 | 15,717 | 2/18/2020 | |
3.0.2 | 5,056 | 1/14/2020 | |
3.0.1 | 105,173 | 11/18/2019 | |
3.0.0 | 469,791 | 9/23/2019 | |
3.0.0-rc1.19456.10 | 1,128 | 9/16/2019 | |
3.0.0-preview9.19423.4 | 2,659 | 9/4/2019 | |
3.0.0-preview8.19405.4 | 3,763 | 8/13/2019 | |
3.0.0-preview7.19362.4 | 3,039 | 7/23/2019 | |
3.0.0-preview6.19304.6 | 2,168 | 6/12/2019 | |
3.0.0-preview5.19227.9 | 2,202 | 5/6/2019 | |
3.0.0-preview4.19216.2 | 582 | 4/18/2019 | |
3.0.0-preview3.19153.1 | 728 | 3/6/2019 | |
3.0.0-preview.19074.2 | 613 | 1/29/2019 | |
3.0.0-preview.18572.1 | 902 | 12/4/2018 | |
2.2.5 | 2,167,239 | 5/14/2019 | |
2.2.0 | 2,051,479 | 12/3/2018 | |
2.2.0-preview3-35497 | 5,845 | 10/17/2018 |