4

according to the Distributed caching in ASP.NET Core

It is said I can using Microsoft.Extensions.Caching.StackExchangeRedis and using services.AddStackExchangeRedisCache in ConfigureServices

However the namespace Microsoft.Extensions.Caching.StackExchangeRedis not exists on dotnet core 3.0.

there is only using Microsoft.Extensions.Caching.Memory; and using Microsoft.Extensions.Caching.Distributed; exists

2
  • Did you install the StackExchangeRedis nuget package? nuget.org/packages/… Commented Oct 21, 2019 at 3:54
  • @Phill, thanks, indeed, I not install this package, but the official doc is not written about install this package Commented Oct 21, 2019 at 4:03

1 Answer 1

10

https://learn.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-3.0#prerequisites

The Prerequisits section higher up in the linked document state you need to add a reference to the package Microsoft.Extensions.Caching.StackExchangeRedis

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.