You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a .NET 8 Web API project and I have to use a distributed memcached over 2 or more pods on Kubernetes. But when I put the next configuration on my Program.cs, it doesn´t work (EasyCaching.Core.Internal.DefaultDistributedCache doesn´t exists):
builder.Services.AddSingleton(sp =>
{
var factory = sp.GetRequiredService();
var provider = factory.GetCachingProvider("default");
return new EasyCaching.Core.Internal.DefaultDistributedCache(provider);
});
Am I wrong or I missed some Nuget package?
Thanks for your support.
The text was updated successfully, but these errors were encountered:
Thaks for your solution, is a great aid.
I have a .NET 8 Web API project and I have to use a distributed memcached over 2 or more pods on Kubernetes. But when I put the next configuration on my Program.cs, it doesn´t work (EasyCaching.Core.Internal.DefaultDistributedCache doesn´t exists):
builder.Services.AddSingleton(sp =>
{
var factory = sp.GetRequiredService();
var provider = factory.GetCachingProvider("default");
return new EasyCaching.Core.Internal.DefaultDistributedCache(provider);
});
Am I wrong or I missed some Nuget package?
Thanks for your support.
The text was updated successfully, but these errors were encountered: