RE: What is caching? What are different ways of cachin...
Caching is a technique of persisting the data in memory for immediate access to requesting program calls. This is considered as the best way to enhance the performance of the application.
Caching is of 3 types:
Output Caching - Caches the whole page. Fragment Caching - Caches a part of the page Data Caching - Caches the data
RE: What is caching? What are different ways of cachin...
Caching is the optimization techniq used to store the frequently used data to reduce the burden on the server. The data stored in the temporary caching memory when user request for data the request not go to server it will go to cache memory. It has some time with the help of duration attribute within that time if refresh the data come from cache instead of server. < ouputcache true duration 360 >
RE: What is caching? What are different ways of caching in ASP.NET?
Caching: It is a technique of temporary storage of page or data on ClientSide or DownStream or ServerSide.(Ofcourse storing page on serverside doesn't make any sence still .NET provide us that option.)
Instead of fetching the required page from Central Server every time we can store the page on client Side or downstream.
There are three ways of caching in ASP.NET
1) Page Cache: Ment to cache whole page. 2) Fragment Cache: Ment to cache user controls. 3) Data Cache: Ment to cache small piece of data.
Based upon dependency also there are some classifications 1) Key Based Dependency 2) Time Based Dependency 3) File Based Dependency 4) SQL Cache Dependency
Below are the Possible values for Location Attribute inside OutputCache Page Directive. 1) Any 2) None 3) Client 4) Downstream 5) Server 6) ServerAndClient
I am not explaining each of them as it will take lot of space.