Microsoft.Extensions.Caching.StackExchangeRedis 11.0.0

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
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
64
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
63
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
60
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
54
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
53
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
52
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
51
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
49
Aspire.StackExchange.Redis.DistributedCaching
A Redis® implementation for IDistributedCache that integrates with Aspire, including health checks, logging, and telemetry.
48

Version Downloads Last updated
11.0.0 11 11/12/2026
11.0.0-rc.3.26522.148 17 10/26/2026
11.0.0-rc.2.26504.105 23 10/13/2026
11.0.0-rc.1.26425.128 27 09/10/2026
11.0.0-preview.7.26381.103 30 08/13/2026
11.0.0-preview.6.26359.118 36 07/15/2026
11.0.0-preview.5.26302.115 37 06/11/2026
11.0.0-preview.4.26230.115 39 05/14/2026
11.0.0-preview.3.26207.106 56 04/14/2026
11.0.0-preview.2.26159.112 61 03/13/2026
11.0.0-preview.1.26104.118 57 02/12/2026
10.0.15 9 11/12/2026
10.0.14 19 10/26/2026
10.0.13 25 10/13/2026
10.0.12 26 09/10/2026
10.0.11 31 08/13/2026
10.0.10 36 07/15/2026
10.0.9 33 06/11/2026
10.0.8 51 05/14/2026
10.0.7 58 04/23/2026
10.0.6 40 04/14/2026
10.0.5 73 03/13/2026
10.0.4 62 03/13/2026
10.0.3 76 02/13/2026
10.0.2 59 01/15/2026
10.0.1 21 09/27/2026
10.0.0 68 12/17/2025
10.0.0-rc.2.25502.107 59 12/17/2025
10.0.0-rc.1.25451.107 69 12/13/2025
10.0.0-preview.7.25380.108 62 12/16/2025
10.0.0-preview.6.25358.103 50 12/11/2025
10.0.0-preview.5.25277.114 46 12/15/2025
10.0.0-preview.4.25258.110 51 12/13/2025
10.0.0-preview.3.25172.1 51 12/13/2025
9.0.23 10 11/10/2026
9.0.22 15 10/26/2026
9.0.21 22 10/13/2026
9.0.20 24 09/10/2026
9.0.19 29 08/13/2026
9.0.18 36 07/15/2026
9.0.17 37 06/11/2026
9.0.16 46 05/14/2026
9.0.15 47 04/14/2026
9.0.14 55 03/13/2026
9.0.13 53 02/13/2026
9.0.12 59 01/15/2026
9.0.11 52 12/14/2025
9.0.10 55 12/17/2025
9.0.9 37 12/13/2025
9.0.8 47 12/16/2025
9.0.7 57 12/13/2025
9.0.6 57 12/14/2025
9.0.5 46 12/21/2025
9.0.4 70 12/18/2025
9.0.2 26 10/08/2026
9.0.1 52 12/20/2025
9.0.0 62 12/20/2025
9.0.0-rc.2.24474.3 44 12/16/2025
9.0.0-rc.1.24452.1 57 12/21/2025
9.0.0-preview.7.24406.2 58 12/27/2025
9.0.0-preview.6.24328.4 72 12/13/2025
9.0.0-preview.5.24306.11 58 12/20/2025
9.0.0-preview.4.24267.6 63 12/27/2025
9.0.0-preview.3.24172.13 61 12/21/2025
9.0.0-preview.2.24128.4 26 09/29/2026
9.0.0-preview.1.24081.5 50 12/12/2025
8.0.34 9 11/12/2026
8.0.33 13 10/26/2026
8.0.32 22 10/13/2026
8.0.31 23 09/10/2026
8.0.30 35 08/13/2026
8.0.29 37 07/15/2026
8.0.28 41 06/11/2026
8.0.27 41 05/14/2026
8.0.26 46 04/14/2026
8.0.25 64 03/13/2026
8.0.24 74 02/13/2026
8.0.23 62 01/15/2026
8.0.22 56 12/14/2025
8.0.21 56 12/17/2025
8.0.20 38 12/13/2025
8.0.19 58 12/16/2025
8.0.18 40 12/13/2025
8.0.17 55 12/13/2025
8.0.16 69 12/20/2025
8.0.15 58 12/13/2025
8.0.14 56 12/16/2025
8.0.13 61 12/20/2025
8.0.12 54 12/11/2025
8.0.11 68 12/20/2025
8.0.10 52 12/20/2025
8.0.8 59 12/11/2025
8.0.7 44 12/20/2025
8.0.6 46 12/31/2025
8.0.5 61 12/31/2025
8.0.4 65 12/25/2025
8.0.3 50 12/13/2025
8.0.2 43 12/31/2025
8.0.1 64 12/20/2025
8.0.0 56 12/11/2025
8.0.0-rc.2.23480.2 58 12/16/2025
8.0.0-rc.1.23421.29 48 12/16/2025
8.0.0-preview.7.23375.9 56 12/21/2025
8.0.0-preview.6.23329.11 43 12/28/2025
8.0.0-preview.5.23302.2 57 01/04/2026
8.0.0-preview.4.23260.4 59 01/01/2026
8.0.0-preview.3.23177.8 42 12/11/2025
8.0.0-preview.2.23153.2 61 12/16/2025
8.0.0-preview.1.23112.2 60 12/18/2025
7.0.20 50 12/14/2025
7.0.19 53 12/20/2025
7.0.18 62 12/20/2025
7.0.17 55 12/20/2025
7.0.16 58 12/11/2025
7.0.15 55 12/13/2025
7.0.14 55 12/13/2025
7.0.13 59 12/20/2025
7.0.12 67 12/20/2025
7.0.11 48 12/20/2025
7.0.10 51 12/11/2025
7.0.9 25 10/08/2026
7.0.8 45 12/20/2025
7.0.7 48 12/29/2025
7.0.5 49 12/28/2025
7.0.4 50 12/14/2025
7.0.3 54 01/08/2026
7.0.2 57 12/20/2025
7.0.1 52 12/30/2025
7.0.0 66 12/12/2025
7.0.0-rc.2.22476.2 45 12/16/2025
7.0.0-rc.1.22427.2 43 12/13/2025
7.0.0-preview.7.22376.6 54 12/24/2025
7.0.0-preview.6.22330.3 52 12/20/2025
7.0.0-preview.5.22303.8 62 12/11/2025
7.0.0-preview.4.22251.1 56 12/20/2025
7.0.0-preview.3.22178.4 57 12/13/2025
7.0.0-preview.2.22153.2 56 12/15/2025
7.0.0-preview.1.22109.13 51 12/10/2025
6.0.36 57 12/15/2025
6.0.35 53 12/20/2025
6.0.33 67 12/20/2025
6.0.32 60 12/20/2025
6.0.31 67 12/20/2025
6.0.30 57 12/20/2025
6.0.29 68 12/20/2025
6.0.28 54 12/20/2025
6.0.27 27 09/27/2026
6.0.26 61 12/11/2025
6.0.25 65 12/20/2025
6.0.24 57 12/20/2025
6.0.23 48 12/20/2025
6.0.22 65 12/20/2025
6.0.21 59 12/13/2025
6.0.20 50 12/20/2025
6.0.19 57 12/20/2025
6.0.18 47 12/20/2025
6.0.16 65 12/20/2025
6.0.15 64 12/20/2025
6.0.14 50 12/20/2025
6.0.13 50 12/13/2025
6.0.12 57 12/20/2025
6.0.11 60 12/20/2025
6.0.10 55 12/20/2025
6.0.9 65 12/20/2025
6.0.8 60 12/20/2025
6.0.7 37 12/20/2025
6.0.6 65 12/20/2025
6.0.5 55 12/31/2025
6.0.4 63 12/24/2025
6.0.3 62 12/13/2025
6.0.2 67 12/20/2025
6.0.1 41 12/20/2025
6.0.0 54 01/03/2026
6.0.0-rc.2.21480.10 61 12/12/2025
6.0.0-rc.1.21452.15 60 12/29/2025
6.0.0-preview.7.21378.6 61 12/21/2025
6.0.0-preview.6.21355.2 55 12/14/2025
6.0.0-preview.5.21301.17 57 12/14/2025
6.0.0-preview.4.21253.5 62 12/28/2025
6.0.0-preview.3.21201.13 41 12/15/2025
6.0.0-preview.2.21154.6 46 12/21/2025
6.0.0-preview.1.21103.6 64 12/14/2025
5.0.1 56 12/20/2025
5.0.0 51 12/20/2025
5.0.0-rc.2.20478.4 45 12/11/2025
5.0.0-rc.1.20451.7 61 12/21/2025
5.0.0-preview.8.20407.3 56 12/16/2025
5.0.0-preview.7.20365.4 33 09/28/2026
5.0.0-preview.6.20306.1 53 12/21/2025
5.0.0-preview.5.20278.3 39 12/16/2025
5.0.0-preview.4.20251.2 55 01/01/2026
5.0.0-preview.3.20215.2 41 12/22/2025
5.0.0-preview.2.20160.3 55 12/11/2025
5.0.0-preview.1.20120.4 61 12/21/2025
3.1.32 16 10/08/2026
3.1.31 58 12/20/2025
3.1.30 32 10/01/2026
3.1.29 56 12/16/2025
3.1.28 55 12/20/2025
3.1.27 50 12/17/2025
3.1.26 63 12/17/2025
3.1.25 55 12/20/2025
3.1.24 20 10/08/2026
3.1.23 69 12/17/2025
3.1.22 59 01/01/2026
3.1.21 54 12/20/2025
3.1.20 66 12/16/2025
3.1.19 58 12/14/2025
3.1.18 56 12/13/2025
3.1.17 56 12/20/2025
3.1.16 57 12/20/2025
3.1.15 64 12/20/2025
3.1.14 52 12/20/2025
3.1.13 57 12/20/2025
3.1.12 66 12/20/2025
3.1.11 26 10/08/2026
3.1.10 41 12/20/2025
3.1.9 53 12/20/2025
3.1.8 71 12/15/2025
3.1.7 51 12/11/2025
3.1.6 59 12/13/2025
3.1.5 57 12/29/2025
3.1.4 45 12/13/2025
3.1.3 62 12/20/2025
3.1.2 42 12/28/2025
3.1.1 59 12/13/2025
3.1.0 60 01/01/2026
3.1.0-preview3.19553.2 45 12/30/2025
3.1.0-preview2.19525.4 44 12/21/2025
3.1.0-preview1.19506.1 62 12/13/2025
3.0.3 53 12/18/2025
3.0.2 76 12/20/2025
3.0.1 47 12/20/2025
3.0.0 62 12/20/2025
3.0.0-rc1.19456.10 55 12/16/2025
3.0.0-preview9.19423.4 60 12/21/2025
3.0.0-preview8.19405.4 55 12/16/2025
3.0.0-preview7.19362.4 49 12/20/2025
3.0.0-preview6.19304.6 55 12/16/2025
3.0.0-preview5.19227.9 47 12/12/2025
3.0.0-preview4.19216.2 45 12/12/2025
3.0.0-preview3.19153.1 57 12/12/2025
3.0.0-preview.19074.2 52 12/16/2025
3.0.0-preview.18572.1 39 12/16/2025
2.2.5 18 10/05/2026
2.2.0 65 12/13/2025
2.2.0-preview3-35497 52 12/21/2025