Query Caching in Entity Framework Core using NCache

By Sriram Mannava

In this article, let's look at how we can configure and use NCache for query caching in Entity Framework Core with an illustrating example in ASP.NET.

Caching is one of the most important strategies used for boosting application performance. It is a technique in which certain type of data is maintained in a high speed memory and is accessed whenever a request for that data arises.

Caching is applied at various levels of application – for example, web browsers cache content based on the headers sent out by the API / Server via the response.

Other types of Caching includes application data caching, where frequently accessed application data is cached at particular location (for example, in-memory) so that when that particular record or object is needed, it doesn’t need to be fetched again.

This avoids an actual database hit and contributes to overall request turnaround time.

Read full Article

Signup for monthly email newsletter to get latest updates.

© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.