Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot use Redis cache in Dotnet Core 3.0

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

like image 227
TangMonk Avatar asked Oct 17 '25 15:10

TangMonk


1 Answers

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

like image 187
Phill Avatar answered Oct 20 '25 05:10

Phill