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

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
65
Quantum.Framework.WebApp
Package Description
67
Quantum.Framework.WebApp
Package Description
71
Quantum.Framework.WebApp
Package Description
74
Quantum.Framework.WebApp
Package Description
83
Quantum.Framework.WebApp
Package Description
95
Quantum.Framework.WebApp
Package Description
125
Quantum.Framework.WebApp
Package Description
154
Quantum.Framework.WebApp
Package Description
168
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
62
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
63
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
65
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
67
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
68
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
70
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
73
Quantum.Framework.WebApp
提供TMS/WMS/OMS/AMS等共享的组件
179

.NET Framework 4.6.2

.NET 10.0

.NET Standard 2.0

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