Distributed caching and locking with Redis in .NET Core

1.7k Views Asked by At

I have created a sample project in .NET Core 3 using NuGet package Microsoft.Extensions.Caching.StackExchangeRedis for distributed caching. Everything is working fine but I am not sure what would happen if multiple clients asynchronously and concurrently used some particular resource.

I am not able to find any new articles/solutions regarding the concurrent access and therefore using some mechanism for locking. There are many old articles but nothing that has been posted lately so I am not sure to what extend those solutions work years after their release.

Are locks necessary for asynchronous access and concurrent use of resources in .NET Core using Microsoft.Extensions.Caching.StackExchangeRedis package? If that's the case - some help (code/articles/links) would be much appreciated.

0

There are 0 best solutions below