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

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
86
Quantum.Framework.WebApp
Package Description
101
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等共享的组件
67
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
68
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等共享的组件
91
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
120
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
186

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

Version Downloads Last updated
10.0.0-preview.5.25277.114 2 06/08/2025
10.0.0-preview.4.25258.110 6 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.6 3 06/14/2025
9.0.5 5 05/16/2025
9.0.4 9 04/12/2025
9.0.3 5 05/31/2025
9.0.2 11 03/06/2025
9.0.1 14 01/16/2025
9.0.0 15 11/20/2024
9.0.0-rc.2.24474.3 18 11/10/2024
9.0.0-rc.1.24452.1 16 11/12/2024
9.0.0-preview.7.24406.2 14 11/12/2024
9.0.0-preview.6.24328.4 18 11/27/2024
9.0.0-preview.5.24306.11 14 12/11/2024
9.0.0-preview.4.24267.6 17 06/03/2024
9.0.0-preview.3.24172.13 12 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.17 3 06/13/2025
8.0.16 4 05/16/2025
8.0.15 5 04/12/2025
8.0.14 13 03/16/2025
8.0.13 13 02/22/2025
8.0.12 11 01/16/2025
8.0.11 15 11/24/2024
8.0.10 15 11/10/2024
8.0.8 16 11/10/2024
8.0.7 16 12/11/2024
8.0.6 12 11/16/2024
8.0.5 250 05/24/2024
8.0.4 23 05/01/2024
8.0.3 20 05/26/2024
8.0.2 15 05/22/2024
8.0.1 22 01/18/2024
8.0.0 138 04/17/2024
8.0.0-rc.2.23480.2 16 05/21/2024
8.0.0-rc.1.23421.29 20 06/03/2024
8.0.0-preview.7.23375.9 19 06/01/2024
8.0.0-preview.6.23329.11 16 01/18/2024
8.0.0-preview.5.23302.2 16 06/03/2024
8.0.0-preview.4.23260.4 24 05/17/2024
8.0.0-preview.3.23177.8 20 05/05/2024
8.0.0-preview.2.23153.2 17 05/06/2024
8.0.0-preview.1.23112.2 17 05/02/2024
7.0.20 9 01/05/2025
7.0.19 17 06/03/2024
7.0.18 15 06/03/2024
7.0.17 16 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 30 01/18/2024
7.0.11 19 01/18/2024
7.0.10 24 01/18/2024
7.0.9 22 05/23/2024
7.0.8 17 05/18/2024
7.0.7 20 06/03/2024
7.0.5 23 04/10/2024
7.0.4 19 05/01/2024
7.0.3 19 05/16/2024
7.0.2 16 05/25/2024
7.0.1 17 06/03/2024
7.0.0 22 06/03/2024
7.0.0-rc.2.22476.2 15 05/05/2024
7.0.0-rc.1.22427.2 18 06/03/2024
7.0.0-preview.7.22376.6 17 05/15/2024
7.0.0-preview.6.22330.3 18 06/03/2024
7.0.0-preview.5.22303.8 14 06/03/2024
7.0.0-preview.4.22251.1 15 06/03/2024
7.0.0-preview.3.22178.4 15 05/17/2024
7.0.0-preview.2.22153.2 16 01/18/2024
7.0.0-preview.1.22109.13 19 05/14/2024
6.0.36 16 11/24/2024
6.0.35 12 11/26/2024
6.0.33 16 11/27/2024
6.0.32 15 12/12/2024
6.0.31 23 11/12/2024
6.0.30 14 06/03/2024
6.0.29 20 05/19/2024
6.0.28 17 05/15/2024
6.0.27 21 06/03/2024
6.0.26 18 05/02/2024
6.0.25 17 05/28/2024
6.0.24 20 05/21/2024
6.0.23 22 05/21/2024
6.0.22 16 01/18/2024
6.0.21 18 05/05/2024
6.0.20 13 05/09/2024
6.0.19 20 01/18/2024
6.0.18 19 05/05/2024
6.0.16 19 06/03/2024
6.0.15 20 06/03/2024
6.0.14 16 05/21/2024
6.0.13 18 06/03/2024
6.0.12 18 01/18/2024
6.0.11 19 01/18/2024
6.0.10 20 05/05/2024
6.0.9 17 05/22/2024
6.0.8 22 01/18/2024
6.0.7 17 05/23/2024
6.0.6 22 01/18/2024
6.0.5 18 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 23 06/03/2024
6.0.0 20 05/02/2024
6.0.0-rc.2.21480.10 18 06/03/2024
6.0.0-rc.1.21452.15 19 06/03/2024
6.0.0-preview.7.21378.6 14 06/03/2024
6.0.0-preview.6.21355.2 18 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 22 05/01/2024
6.0.0-preview.2.21154.6 19 05/23/2024
6.0.0-preview.1.21103.6 17 06/03/2024
5.0.1 27 09/13/2022
5.0.0 17 05/19/2024
5.0.0-rc.2.20478.4 16 06/03/2024
5.0.0-rc.1.20451.7 19 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 18 05/10/2024
5.0.0-preview.5.20278.3 17 06/03/2024
5.0.0-preview.4.20251.2 15 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 15 05/05/2024
3.1.32 9,196 05/11/2023
3.1.31 20 06/03/2024
3.1.30 1,467 04/19/2023
3.1.29 26 01/18/2024
3.1.28 17 06/03/2024
3.1.27 18 05/20/2024
3.1.26 12 12/11/2024
3.1.25 16 05/25/2024
3.1.24 21 01/18/2024
3.1.23 18 06/03/2024
3.1.22 17 06/03/2024
3.1.21 15 05/05/2024
3.1.20 13 06/03/2024
3.1.19 20 05/19/2024
3.1.18 17 06/03/2024
3.1.17 17 05/09/2024
3.1.16 16 05/06/2024
3.1.15 19 05/20/2024
3.1.14 21 01/18/2024
3.1.13 17 05/23/2024
3.1.12 16 06/03/2024
3.1.11 19 05/20/2024
3.1.10 15 01/18/2024
3.1.9 15 05/04/2024
3.1.8 17 05/18/2024
3.1.7 25 05/23/2024
3.1.6 16 05/15/2024
3.1.5 15 05/20/2024
3.1.4 17 06/03/2024
3.1.3 18 05/17/2024
3.1.2 18 01/18/2024
3.1.1 19 05/17/2024
3.1.0 16 01/18/2024
3.1.0-preview3.19553.2 18 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 18 01/18/2024
3.0.2 17 06/03/2024
3.0.1 15 05/21/2024
3.0.0 17 05/07/2024
3.0.0-rc1.19456.10 20 01/18/2024
3.0.0-preview9.19423.4 17 05/18/2024
3.0.0-preview8.19405.4 26 05/23/2024
3.0.0-preview7.19362.4 15 06/03/2024
3.0.0-preview6.19304.6 15 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 16 06/03/2024
3.0.0-preview.19074.2 17 06/03/2024
3.0.0-preview.18572.1 17 05/02/2024
2.2.5 17 05/19/2024
2.2.0 24 06/03/2024
2.2.0-preview3-35497 13 12/10/2024