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

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.

Showing the top 20 packages that depend on Microsoft.Extensions.Caching.StackExchangeRedis.

Packages Downloads
Quantum.Framework.WebApp
Package Description
70
Quantum.Framework.WebApp
Package Description
74
Quantum.Framework.WebApp
Package Description
76
Quantum.Framework.WebApp
Package Description
87
Quantum.Framework.WebApp
Package Description
105
Quantum.Framework.WebApp
Package Description
128
Quantum.Framework.WebApp
Package Description
156
Quantum.Framework.WebApp
Package Description
170
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
69
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
73
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
74
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
76
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
78
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
79
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
81
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
95
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
124
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
187

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

Version Downloads Last updated
10.0.0-preview.6.25358.103 1 07/18/2025
10.0.0-preview.5.25277.114 3 06/08/2025
10.0.0-preview.4.25258.110 8 05/15/2025
10.0.0-preview.3.25172.1 9 04/13/2025
10.0.0-preview.1.25120.3 13 03/16/2025
9.0.7 2 07/12/2025
9.0.6 3 06/14/2025
9.0.5 6 05/16/2025
9.0.4 12 04/12/2025
9.0.3 6 05/31/2025
9.0.2 11 03/06/2025
9.0.1 15 01/16/2025
9.0.0 17 11/20/2024
9.0.0-rc.2.24474.3 20 11/10/2024
9.0.0-rc.1.24452.1 17 11/12/2024
9.0.0-preview.7.24406.2 14 11/12/2024
9.0.0-preview.6.24328.4 19 11/27/2024
9.0.0-preview.5.24306.11 15 12/11/2024
9.0.0-preview.4.24267.6 18 06/03/2024
9.0.0-preview.3.24172.13 13 06/03/2024
9.0.0-preview.2.24128.4 26 05/03/2024
9.0.0-preview.1.24081.5 18 05/25/2024
8.0.18 0 07/08/2025
8.0.17 3 06/13/2025
8.0.16 5 05/16/2025
8.0.15 8 04/12/2025
8.0.14 14 03/16/2025
8.0.13 13 02/22/2025
8.0.12 13 01/16/2025
8.0.11 16 11/24/2024
8.0.10 16 11/10/2024
8.0.8 18 11/10/2024
8.0.7 18 12/11/2024
8.0.6 13 11/16/2024
8.0.5 257 05/24/2024
8.0.4 24 05/01/2024
8.0.3 21 05/26/2024
8.0.2 16 05/22/2024
8.0.1 24 01/18/2024
8.0.0 140 04/17/2024
8.0.0-rc.2.23480.2 17 05/21/2024
8.0.0-rc.1.23421.29 21 06/03/2024
8.0.0-preview.7.23375.9 19 06/01/2024
8.0.0-preview.6.23329.11 17 01/18/2024
8.0.0-preview.5.23302.2 16 06/03/2024
8.0.0-preview.4.23260.4 25 05/17/2024
8.0.0-preview.3.23177.8 22 05/05/2024
8.0.0-preview.2.23153.2 18 05/06/2024
8.0.0-preview.1.23112.2 18 05/02/2024
7.0.20 10 01/05/2025
7.0.19 17 06/03/2024
7.0.18 15 06/03/2024
7.0.17 17 05/13/2024
7.0.16 17 05/18/2024
7.0.15 16 06/03/2024
7.0.14 18 05/09/2024
7.0.13 17 01/18/2024
7.0.12 31 01/18/2024
7.0.11 19 01/18/2024
7.0.10 24 01/18/2024
7.0.9 23 05/23/2024
7.0.8 18 05/18/2024
7.0.7 21 06/03/2024
7.0.5 24 04/10/2024
7.0.4 19 05/01/2024
7.0.3 20 05/16/2024
7.0.2 17 05/25/2024
7.0.1 17 06/03/2024
7.0.0 23 06/03/2024
7.0.0-rc.2.22476.2 16 05/05/2024
7.0.0-rc.1.22427.2 19 06/03/2024
7.0.0-preview.7.22376.6 17 05/15/2024
7.0.0-preview.6.22330.3 20 06/03/2024
7.0.0-preview.5.22303.8 15 06/03/2024
7.0.0-preview.4.22251.1 16 06/03/2024
7.0.0-preview.3.22178.4 15 05/17/2024
7.0.0-preview.2.22153.2 17 01/18/2024
7.0.0-preview.1.22109.13 19 05/14/2024
6.0.36 17 11/24/2024
6.0.35 13 11/26/2024
6.0.33 17 11/27/2024
6.0.32 17 12/12/2024
6.0.31 23 11/12/2024
6.0.30 14 06/03/2024
6.0.29 22 05/19/2024
6.0.28 18 05/15/2024
6.0.27 22 06/03/2024
6.0.26 19 05/02/2024
6.0.25 18 05/28/2024
6.0.24 21 05/21/2024
6.0.23 22 05/21/2024
6.0.22 17 01/18/2024
6.0.21 19 05/05/2024
6.0.20 14 05/09/2024
6.0.19 21 01/18/2024
6.0.18 20 05/05/2024
6.0.16 20 06/03/2024
6.0.15 21 06/03/2024
6.0.14 17 05/21/2024
6.0.13 18 06/03/2024
6.0.12 19 01/18/2024
6.0.11 20 01/18/2024
6.0.10 22 05/05/2024
6.0.9 19 05/22/2024
6.0.8 23 01/18/2024
6.0.7 18 05/23/2024
6.0.6 23 01/18/2024
6.0.5 20 04/28/2024
6.0.4 17 05/20/2024
6.0.3 17 10/28/2022
6.0.2 15 06/03/2024
6.0.1 24 06/03/2024
6.0.0 20 05/02/2024
6.0.0-rc.2.21480.10 19 06/03/2024
6.0.0-rc.1.21452.15 20 06/03/2024
6.0.0-preview.7.21378.6 14 06/03/2024
6.0.0-preview.6.21355.2 20 05/30/2024
6.0.0-preview.5.21301.17 19 05/29/2024
6.0.0-preview.4.21253.5 16 06/03/2024
6.0.0-preview.3.21201.13 23 05/01/2024
6.0.0-preview.2.21154.6 20 05/23/2024
6.0.0-preview.1.21103.6 17 06/03/2024
5.0.1 28 09/13/2022
5.0.0 18 05/19/2024
5.0.0-rc.2.20478.4 16 06/03/2024
5.0.0-rc.1.20451.7 20 05/12/2024
5.0.0-preview.8.20407.3 17 06/03/2024
5.0.0-preview.7.20365.4 22 05/07/2024
5.0.0-preview.6.20306.1 19 05/10/2024
5.0.0-preview.5.20278.3 17 06/03/2024
5.0.0-preview.4.20251.2 16 06/03/2024
5.0.0-preview.3.20215.2 15 06/03/2024
5.0.0-preview.2.20160.3 18 06/03/2024
5.0.0-preview.1.20120.4 16 05/05/2024
3.1.32 9,207 05/11/2023
3.1.31 21 06/03/2024
3.1.30 1,468 04/19/2023
3.1.29 27 01/18/2024
3.1.28 18 06/03/2024
3.1.27 20 05/20/2024
3.1.26 14 12/11/2024
3.1.25 18 05/25/2024
3.1.24 21 01/18/2024
3.1.23 19 06/03/2024
3.1.22 18 06/03/2024
3.1.21 16 05/05/2024
3.1.20 14 06/03/2024
3.1.19 21 05/19/2024
3.1.18 18 06/03/2024
3.1.17 19 05/09/2024
3.1.16 16 05/06/2024
3.1.15 19 05/20/2024
3.1.14 22 01/18/2024
3.1.13 17 05/23/2024
3.1.12 16 06/03/2024
3.1.11 20 05/20/2024
3.1.10 16 01/18/2024
3.1.9 15 05/04/2024
3.1.8 18 05/18/2024
3.1.7 25 05/23/2024
3.1.6 16 05/15/2024
3.1.5 16 05/20/2024
3.1.4 17 06/03/2024
3.1.3 19 05/17/2024
3.1.2 19 01/18/2024
3.1.1 20 05/17/2024
3.1.0 16 01/18/2024
3.1.0-preview3.19553.2 19 01/18/2024
3.1.0-preview2.19525.4 17 01/18/2024
3.1.0-preview1.19506.1 19 06/03/2024
3.0.3 19 01/18/2024
3.0.2 18 06/03/2024
3.0.1 16 05/21/2024
3.0.0 18 05/07/2024
3.0.0-rc1.19456.10 20 01/18/2024
3.0.0-preview9.19423.4 18 05/18/2024
3.0.0-preview8.19405.4 27 05/23/2024
3.0.0-preview7.19362.4 16 06/03/2024
3.0.0-preview6.19304.6 16 06/03/2024
3.0.0-preview5.19227.9 17 06/03/2024
3.0.0-preview4.19216.2 23 01/18/2024
3.0.0-preview3.19153.1 18 06/03/2024
3.0.0-preview.19074.2 19 06/03/2024
3.0.0-preview.18572.1 17 05/02/2024
2.2.5 18 05/19/2024
2.2.0 25 06/03/2024
2.2.0-preview3-35497 13 12/10/2024