cachingasp.net-coreasp.net-core-webapimemorycacheresponsecache

ASP.NET Core WebAPI: Memory Caching vs Response Caching


ASP.NET Core provides both in-memory caching and response caching. Let's say that the app is ASP.NET Core WebAPI that brings data from SQL database to users with configured Responce Caching middleware. In what case is it useful to use a memory caching also?


Solution

  • These caching strategies are supposed to play a quite different role: