Microsoft.Extensions.Caching.StackExchangeRedis
10.0.0-preview.3.25172.1
Prefix Reserved
dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis --version 10.0.0-preview.3.25172.1
NuGet\Install-Package Microsoft.Extensions.Caching.StackExchangeRedis -Version 10.0.0-preview.3.25172.1
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="10.0.0-preview.3.25172.1" />
<PackageVersion Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="10.0.0-preview.3.25172.1" />
<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" />
paket add Microsoft.Extensions.Caching.StackExchangeRedis --version 10.0.0-preview.3.25172.1
#r "nuget: Microsoft.Extensions.Caching.StackExchangeRedis, 10.0.0-preview.3.25172.1"
#addin nuget:?package=Microsoft.Extensions.Caching.StackExchangeRedis&version=10.0.0-preview.3.25172.1&prerelease
#tool nuget:?package=Microsoft.Extensions.Caching.StackExchangeRedis&version=10.0.0-preview.3.25172.1&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.3.25171.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0-preview.3.25171.5)
- Microsoft.Extensions.Options (>= 10.0.0-preview.3.25171.5)
- StackExchange.Redis (>= 2.7.27)
-
.NETStandard 2.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.0-preview.3.25171.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0-preview.3.25171.5)
- Microsoft.Extensions.Options (>= 10.0.0-preview.3.25171.5)
- StackExchange.Redis (>= 2.7.27)
-
net10.0
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.0-preview.3.25171.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0-preview.3.25171.5)
- Microsoft.Extensions.Options (>= 10.0.0-preview.3.25171.5)
- StackExchange.Redis (>= 2.7.27)
NuGet packages (710)
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 (79)
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 Preview 3, 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
Tools, templates, and packages to accelerate building observable, production-ready apps
|
|
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 框架更易于应用到实际项目开发中。
|
|
ZiggyCreatures/FusionCache
FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
|
|
vietnam-devs/coolstore-microservices
A full-stack .NET microservices build on Dapr and Tye
|
|
xiaoyaocz/biliuwp-lite
哔哩哔哩UWP Lite
|
|
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
|
|
aspnet/Benchmarks
Benchmarks for ASP.NET Core
|
|
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
|
Version | Downloads | Last updated | |
---|---|---|---|
10.0.0-preview.3.25172.1 | 604 | 4/10/2025 | |
9.0.2 | 1,037,530 | 2/11/2025 | |
9.0.1 | 782,376 | 1/14/2025 | |
9.0.0 | 1,953,021 | 11/12/2024 | |
9.0.0-rc.2.24474.3 | 90,087 | 10/8/2024 | |
9.0.0-rc.1.24452.1 | 16,341 | 9/10/2024 | |
9.0.0-preview.7.24406.2 | 10,644 | 8/13/2024 | |
9.0.0-preview.6.24328.4 | 15,757 | 7/9/2024 | |
9.0.0-preview.5.24306.11 | 15,850 | 6/11/2024 | |
9.0.0-preview.4.24267.6 | 7,619 | 5/21/2024 | |
9.0.0-preview.3.24172.13 | 9,281 | 4/11/2024 | |
9.0.0-preview.2.24128.4 | 14,509 | 3/12/2024 | |
9.0.0-preview.1.24081.5 | 6,700 | 2/13/2024 | |
8.0.15 | 34,667 | 4/8/2025 | |
8.0.14 | 174,233 | 3/11/2025 | |
8.0.13 | 283,070 | 2/11/2025 | |
8.0.12 | 495,507 | 1/14/2025 | |
8.0.11 | 1,592,215 | 11/12/2024 | |
8.0.10 | 3,657,309 | 10/8/2024 | |
8.0.8 | 4,334,993 | 8/13/2024 | |
8.0.7 | 2,845,006 | 7/9/2024 | |
8.0.6 | 3,126,481 | 5/28/2024 | |
8.0.5 | 1,113,590 | 5/14/2024 | |
8.0.4 | 3,063,863 | 4/9/2024 | |
8.0.3 | 2,490,264 | 3/12/2024 | |
8.0.2 | 2,488,407 | 2/13/2024 | |
8.0.1 | 2,591,685 | 1/9/2024 | |
8.0.0 | 4,367,582 | 11/14/2023 | |
8.0.0-rc.2.23480.2 | 36,957 | 10/10/2023 | |
8.0.0-rc.1.23421.29 | 31,536 | 9/12/2023 | |
8.0.0-preview.7.23375.9 | 23,111 | 8/8/2023 | |
8.0.0-preview.6.23329.11 | 16,068 | 7/11/2023 | |
8.0.0-preview.5.23302.2 | 8,204 | 6/13/2023 | |
8.0.0-preview.4.23260.4 | 245,355 | 5/16/2023 | |
8.0.0-preview.3.23177.8 | 5,883 | 4/11/2023 | |
8.0.0-preview.2.23153.2 | 4,023 | 3/14/2023 | |
8.0.0-preview.1.23112.2 | 91,363 | 2/21/2023 | |
7.0.20 | 305,825 | 5/28/2024 | |
7.0.19 | 99,204 | 5/14/2024 | |
7.0.18 | 85,563 | 4/9/2024 | |
7.0.17 | 105,682 | 3/12/2024 | |
7.0.16 | 159,861 | 2/13/2024 | |
7.0.15 | 324,758 | 1/9/2024 | |
7.0.14 | 678,706 | 11/14/2023 | |
7.0.13 | 1,017,557 | 10/24/2023 | |
7.0.12 | 632,174 | 10/10/2023 | |
7.0.11 | 1,334,742 | 9/12/2023 | |
7.0.10 | 1,729,158 | 8/8/2023 | |
7.0.9 | 1,235,025 | 7/11/2023 | |
7.0.8 | 1,116,290 | 6/22/2023 | |
7.0.7 | 495,386 | 6/13/2023 | |
7.0.5 | 2,941,938 | 4/11/2023 | |
7.0.4 | 1,562,709 | 3/14/2023 | |
7.0.3 | 1,795,162 | 2/14/2023 | |
7.0.2 | 1,604,071 | 1/10/2023 | |
7.0.1 | 963,493 | 12/13/2022 | |
7.0.0 | 2,547,575 | 11/7/2022 | |
7.0.0-rc.2.22476.2 | 13,673 | 10/11/2022 | |
7.0.0-rc.1.22427.2 | 22,527 | 9/14/2022 | |
7.0.0-preview.7.22376.6 | 13,268 | 8/9/2022 | |
7.0.0-preview.6.22330.3 | 24,635 | 7/12/2022 | |
7.0.0-preview.5.22303.8 | 19,974 | 6/14/2022 | |
7.0.0-preview.4.22251.1 | 21,673 | 5/10/2022 | |
7.0.0-preview.3.22178.4 | 11,553 | 4/13/2022 | |
7.0.0-preview.2.22153.2 | 24,551 | 3/14/2022 | |
7.0.0-preview.1.22109.13 | 8,273 | 2/17/2022 | |
6.0.36 | 138,582 | 11/12/2024 | |
6.0.35 | 93,248 | 10/8/2024 | |
6.0.33 | 149,028 | 8/13/2024 | |
6.0.32 | 126,986 | 7/9/2024 | |
6.0.31 | 225,233 | 5/28/2024 | |
6.0.30 | 221,054 | 5/14/2024 | |
6.0.29 | 360,393 | 4/9/2024 | |
6.0.28 | 256,016 | 3/12/2024 | |
6.0.27 | 462,739 | 2/13/2024 | |
6.0.26 | 369,535 | 1/9/2024 | |
6.0.25 | 996,002 | 11/14/2023 | |
6.0.24 | 290,614 | 10/24/2023 | |
6.0.23 | 256,374 | 10/10/2023 | |
6.0.22 | 446,821 | 9/12/2023 | |
6.0.21 | 761,544 | 8/8/2023 | |
6.0.20 | 759,670 | 7/11/2023 | |
6.0.19 | 291,518 | 6/22/2023 | |
6.0.18 | 381,994 | 6/13/2023 | |
6.0.16 | 1,468,513 | 4/11/2023 | |
6.0.15 | 803,101 | 3/14/2023 | |
6.0.14 | 988,155 | 2/14/2023 | |
6.0.13 | 1,212,415 | 1/10/2023 | |
6.0.12 | 935,979 | 12/13/2022 | |
6.0.11 | 1,745,838 | 11/7/2022 | |
6.0.10 | 3,091,085 | 10/11/2022 | |
6.0.9 | 2,421,224 | 9/13/2022 | |
6.0.8 | 3,274,377 | 8/9/2022 | |
6.0.7 | 2,717,876 | 7/12/2022 | |
6.0.6 | 2,461,664 | 6/14/2022 | |
6.0.5 | 3,259,788 | 5/10/2022 | |
6.0.4 | 1,946,642 | 4/11/2022 | |
6.0.3 | 2,924,612 | 3/8/2022 | |
6.0.2 | 2,167,341 | 2/8/2022 | |
6.0.1 | 4,499,275 | 12/14/2021 | |
6.0.0 | 3,227,913 | 11/8/2021 | |
6.0.0-rc.2.21480.10 | 28,324 | 10/12/2021 | |
6.0.0-rc.1.21452.15 | 12,637 | 9/14/2021 | |
6.0.0-preview.7.21378.6 | 10,997 | 8/10/2021 | |
6.0.0-preview.6.21355.2 | 6,651 | 7/14/2021 | |
6.0.0-preview.5.21301.17 | 24,683 | 6/15/2021 | |
6.0.0-preview.4.21253.5 | 5,194 | 5/24/2021 | |
6.0.0-preview.3.21201.13 | 4,478 | 4/8/2021 | |
6.0.0-preview.2.21154.6 | 3,096 | 3/11/2021 | |
6.0.0-preview.1.21103.6 | 11,373 | 2/12/2021 | |
5.0.1 | 13,952,284 | 12/8/2020 | |
5.0.0 | 1,602,087 | 11/9/2020 | |
5.0.0-rc.2.20478.4 | 11,469 | 10/13/2020 | |
5.0.0-rc.1.20451.7 | 13,778 | 9/14/2020 | |
5.0.0-preview.8.20407.3 | 2,674 | 8/25/2020 | |
5.0.0-preview.7.20365.4 | 4,517 | 7/21/2020 | |
5.0.0-preview.6.20306.1 | 3,043 | 6/25/2020 | |
5.0.0-preview.5.20278.3 | 1,382 | 6/10/2020 | |
5.0.0-preview.4.20251.2 | 7,502 | 5/18/2020 | |
5.0.0-preview.3.20215.2 | 2,474 | 4/23/2020 | |
5.0.0-preview.2.20160.3 | 873 | 4/2/2020 | |
5.0.0-preview.1.20120.4 | 4,344 | 3/16/2020 | |
3.1.32 | 595,225 | 12/13/2022 | |
3.1.31 | 154,504 | 11/8/2022 | |
3.1.30 | 42,845 | 10/11/2022 | |
3.1.29 | 28,507 | 9/13/2022 | |
3.1.28 | 85,607 | 8/9/2022 | |
3.1.27 | 68,992 | 7/12/2022 | |
3.1.26 | 66,984 | 6/14/2022 | |
3.1.25 | 132,037 | 5/10/2022 | |
3.1.24 | 111,320 | 4/11/2022 | |
3.1.23 | 124,735 | 3/8/2022 | |
3.1.22 | 954,638 | 12/14/2021 | |
3.1.21 | 350,859 | 11/7/2021 | |
3.1.20 | 364,394 | 10/11/2021 | |
3.1.19 | 178,311 | 9/14/2021 | |
3.1.18 | 540,529 | 8/10/2021 | |
3.1.17 | 487,506 | 7/13/2021 | |
3.1.16 | 286,656 | 6/8/2021 | |
3.1.15 | 272,342 | 5/11/2021 | |
3.1.14 | 521,415 | 4/6/2021 | |
3.1.13 | 405,656 | 3/9/2021 | |
3.1.12 | 452,937 | 2/9/2021 | |
3.1.11 | 354,991 | 1/12/2021 | |
3.1.10 | 1,079,582 | 11/9/2020 | |
3.1.9 | 1,307,524 | 10/13/2020 | |
3.1.8 | 1,595,026 | 9/8/2020 | |
3.1.7 | 1,384,366 | 8/11/2020 | |
3.1.6 | 902,096 | 7/14/2020 | |
3.1.5 | 1,548,944 | 6/9/2020 | |
3.1.4 | 2,070,487 | 5/12/2020 | |
3.1.3 | 1,904,154 | 3/24/2020 | |
3.1.2 | 976,583 | 2/18/2020 | |
3.1.1 | 967,763 | 1/14/2020 | |
3.1.0 | 1,131,711 | 12/3/2019 | |
3.1.0-preview3.19553.2 | 835 | 11/13/2019 | |
3.1.0-preview2.19525.4 | 623 | 11/1/2019 | |
3.1.0-preview1.19506.1 | 2,523 | 10/15/2019 | |
3.0.3 | 15,927 | 2/18/2020 | |
3.0.2 | 5,107 | 1/14/2020 | |
3.0.1 | 105,452 | 11/18/2019 | |
3.0.0 | 474,424 | 9/23/2019 | |
3.0.0-rc1.19456.10 | 1,165 | 9/16/2019 | |
3.0.0-preview9.19423.4 | 2,699 | 9/4/2019 | |
3.0.0-preview8.19405.4 | 3,804 | 8/13/2019 | |
3.0.0-preview7.19362.4 | 3,079 | 7/23/2019 | |
3.0.0-preview6.19304.6 | 2,209 | 6/12/2019 | |
3.0.0-preview5.19227.9 | 2,245 | 5/6/2019 | |
3.0.0-preview4.19216.2 | 627 | 4/18/2019 | |
3.0.0-preview3.19153.1 | 774 | 3/6/2019 | |
3.0.0-preview.19074.2 | 658 | 1/29/2019 | |
3.0.0-preview.18572.1 | 955 | 12/4/2018 | |
2.2.5 | 2,191,119 | 5/14/2019 | |
2.2.0 | 2,101,023 | 12/3/2018 | |
2.2.0-preview3-35497 | 5,943 | 10/17/2018 |