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 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.
Showing the top 20 packages that depend on Microsoft.Extensions.Caching.StackExchangeRedis.
Packages | Downloads |
---|---|
EFCoreSecondLevelCacheInterceptor
Entity Framework Core Second Level Caching Library.
|
1 |
.NET Framework 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)
.NET 10.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)
.NET Standard 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)
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.3.25172.1 | 1 | 4/20/2025 |
10.0.0-preview.1.25120.3 | 1 | 3/1/2025 |
9.0.5 | 4 | 6/21/2025 |
9.0.2 | 1 | 3/1/2025 |
9.0.1 | 1 | 1/19/2025 |
9.0.0 | 1 | 11/14/2024 |
9.0.0-rc.2.24474.3 | 1 | 11/14/2024 |
9.0.0-rc.1.24452.1 | 0 | 11/10/2024 |
9.0.0-preview.7.24406.2 | 1 | 11/13/2024 |
9.0.0-preview.3.24172.13 | 1 | 11/13/2024 |
8.0.15 | 1 | 4/21/2025 |
8.0.14 | 1 | 4/21/2025 |
8.0.13 | 1 | 3/1/2025 |
8.0.12 | 1 | 1/19/2025 |
8.0.11 | 1 | 11/14/2024 |
8.0.10 | 1 | 11/14/2024 |
8.0.7 | 1 | 11/10/2024 |
8.0.4 | 1 | 11/13/2024 |
8.0.0 | 1 | 3/17/2025 |
8.0.0-preview.7.23375.9 | 1 | 11/10/2024 |
8.0.0-preview.2.23153.2 | 1 | 11/13/2024 |
7.0.19 | 1 | 11/10/2024 |
7.0.17 | 1 | 11/10/2024 |
7.0.16 | 1 | 11/10/2024 |
7.0.15 | 1 | 11/10/2024 |
7.0.14 | 1 | 11/13/2024 |
7.0.12 | 1 | 11/10/2024 |
7.0.9 | 1 | 11/13/2024 |
7.0.7 | 1 | 11/13/2024 |
7.0.1 | 1 | 11/10/2024 |
7.0.0 | 1 | 11/13/2024 |
7.0.0-rc.1.22427.2 | 1 | 11/10/2024 |
7.0.0-preview.4.22251.1 | 1 | 11/13/2024 |
6.0.36 | 1 | 11/14/2024 |
6.0.35 | 1 | 11/14/2024 |
6.0.33 | 1 | 11/10/2024 |
6.0.30 | 1 | 11/10/2024 |
6.0.28 | 1 | 11/13/2024 |
6.0.24 | 1 | 11/10/2024 |
6.0.21 | 1 | 11/10/2024 |
6.0.20 | 1 | 11/10/2024 |
6.0.15 | 1 | 11/10/2024 |
6.0.14 | 1 | 11/10/2024 |
6.0.9 | 1 | 11/10/2024 |
6.0.5 | 1 | 11/13/2024 |
6.0.3 | 1 | 11/13/2024 |
6.0.0-rc.1.21452.15 | 1 | 11/10/2024 |
6.0.0-preview.5.21301.17 | 1 | 11/13/2024 |
5.0.0 | 1 | 11/10/2024 |
5.0.0-rc.1.20451.7 | 1 | 11/10/2024 |
5.0.0-preview.8.20407.3 | 1 | 11/10/2024 |
5.0.0-preview.7.20365.4 | 1 | 11/10/2024 |
5.0.0-preview.6.20306.1 | 1 | 11/10/2024 |
5.0.0-preview.5.20278.3 | 1 | 11/10/2024 |
5.0.0-preview.2.20160.3 | 1 | 11/10/2024 |
5.0.0-preview.1.20120.4 | 1 | 11/10/2024 |
3.1.31 | 1 | 11/13/2024 |
3.1.27 | 1 | 11/10/2024 |
3.1.24 | 1 | 11/13/2024 |
3.1.23 | 1 | 11/10/2024 |
3.1.17 | 1 | 11/13/2024 |
3.1.16 | 1 | 11/13/2024 |
3.1.15 | 1 | 11/13/2024 |
3.1.12 | 1 | 11/10/2024 |
3.1.11 | 1 | 11/13/2024 |
3.1.10 | 1 | 11/10/2024 |
3.1.7 | 1 | 11/10/2024 |
3.1.4 | 1 | 11/10/2024 |
3.1.2 | 1 | 11/10/2024 |
3.1.1 | 1 | 11/10/2024 |
3.1.0-preview1.19506.1 | 1 | 11/10/2024 |
3.0.3 | 1 | 11/13/2024 |
3.0.1 | 1 | 11/10/2024 |
3.0.0-preview8.19405.4 | 1 | 11/10/2024 |
3.0.0-preview5.19227.9 | 1 | 11/13/2024 |
3.0.0-preview3.19153.1 | 1 | 11/10/2024 |
2.2.5 | 1 | 11/10/2024 |