Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring distributed memchached in Kubernetes #559

Open
franmib opened this issue Nov 25, 2024 · 0 comments
Open

Configuring distributed memchached in Kubernetes #559

franmib opened this issue Nov 25, 2024 · 0 comments

Comments

@franmib
Copy link

franmib commented Nov 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant