i

ASP.Net A Complete Guide

What Is Caching [Storage]

It helps us to store the information in memory for rapid access. When the same type of information is requested again and again, then instead of requesting the information from the original source, we can take it from memory.

Some important advantages:

  • It improves the performance

  • It makes data available when the original source is unavailable temporarily

We can use the System.Runtime.Caching namespace to cache the data. The classes which are available under this namespace provide below feature:

  • Abstract types for creating custom cache implementations.

  • An in-memory object for cache implementation.

(ObjectCache) the class helps in below tasks:

  • Creating and managing cache entries.

  • It will help in specifying expiration and eviction information.

  • It will help in Triggering events to changes in cache entries.