Thursday, February 3, 2011

Caching

In a very simple term caching is process of storing data in memory, frequently used data which is very costly to reproduce, is kept in a memory and re used. One of the ways to improve the throughput is to use caching in web pages. Caching is a tried and tested technique for performance improvement. HTML pages have been cached to improve the speed. An indirect example of caching could be connection pooling. 

ASP.Net supports caching the Asp.net response page that is generated by requests and also storing individual objects in memory. 

Three type of Caching in Asp.net
  • Page Output Caching ·

  • Page Fragment Caching

  • Data Caching


  • Delete Items from CacheItems are deleted from cache when the expiration is set or when the dependency file changes or when the server needs to free memory.


     Cache.Remove("oString");

    No comments:

    Post a Comment