Thursday, August 8, 2019

Using Memcached cache from your C# application

Here is the article to read.

ASP.NET internal cache


There is a cache object build into the framework that you could use. The cache object is only ideal for applications hosted in a single server environment.

First of all, an instance of the cache class is created on a per-AppDomain basis and remains valid until that AppDomain is up and running so it’s gone when the app restarts. Furthermore this cache is also not shared between machines in our webfarm meaning all servers still have to retrieve all the data for themselves.


out-of-process and distributed cache

Using an out-of-process and distributed cache then seems ideal since multiple servers and even multiple applications could make use of the same cache as long as they share the key definitions.


Actionable Items


No comments:

Post a Comment