1.

What is caching in ASP.net?

Answer»

Caching is a technique which is used to store data that is FREQUENTLY used in MEMORY. The runtime of ASP.net has a key-value map which is called the CACHE. It reduces the execution time when the next time the same information is requested. The code will not need to be GENERATED since the pages can directly be retrieved from the memory. Caching is very important to transactions related to data because of its quick response time.

The data will be unavailable in certain situations:

  • When the process doesn’t take place for any reason
  • The memory is released from the application
  • The lifetime of the data is expired

The items inside the cache can be accessed using an indexer. It can also be used to control and link the objects to each other.  

  • Output Caching: When the page is requested again, a cached copy is sent.
  • Data Caching: Refills the cache when it is expired.
  • Object Caching: Caches the objects.


Discussion

No Comment Found