C# 7 and .NET: Designing Modern Cross-platform Applications
by Mark J. Price, Ovais Mehboob Ahmed Khan
Caching
Caching is one of the best practices that can be used to increase application performance. It is often used with data where changes are less frequent. There are many caching providers available that we can consider to save data and retrieve it when needed. It is faster than the database operation. In ASP.NET Core, we can use in-memory caching that stores the data in the memory of the server, but for a web farm or a load balancing scenario where an application is deployed to multiple places, it is recommended to use a distributed cache. Microsoft Azure also provides a Redis cache which is a distributed cache that exposes an endpoint that can be used to store values on the cloud and can be retrieved when they are needed.
To use the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access