dotnetcore / dotnetcore/EasyCaching

Configuring distributed memchached in Kubernetes

Open
#559 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2.1k
Forks
336
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.