Friday, 7 April 2017

What is Cashing in ASP .net ?



Caching is a state management technique that can store a copy of the data in memory.
 To increase the performance of the application and improve the access time, caching is used. It exists in temporary storage, in other words when the data is no longer used then it expires. Using a cache we can retrieve the data from a database directly.

Mostly, there are 3 types of caching.
1. Output Caching  Synatx <%@ OutputCache Duration="30" VaryByParam="None" %>  

 2. Data Caching   ==  Store value in cashe   as like session and viewstate   Cache["UserName"] =        tbUserName.Text;
 Cache["Pwd"] = tbpwd.Text;  

3 Fragment Caching   create the user control

No comments:

Post a Comment