Skip to main content
net10.0net11.0.NETFramework4.6.2.NETStandard2.0

Distributed cache implementation of Microsoft.Extensions.Caching.Distributed.IDistributedCache using Redis. This package was built from the source code at https://github.com/dotnet/dotnet/tree/820230c386db5b0106c5430b3e5aee92a7826bf5

Published
Oct 13, 2026
5d ago
Total Downloads
302.1M
302,067,683

Install

dotnet add package Microsoft.Extensions.Caching.StackExchangeRedis --version 11.0.0-rc.2.26504.105
ProductVersions
.NET
net10.0net11.0
.NET Standard
netstandard2.0
Other
.NETFramework4.6.2

README

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.

Changes from Previous Version

No structural changes between v11.0.0-rc.1.26425.128 and v11.0.0-rc.2.26504.105.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.The published metadata declares 13 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.