What are the different types of caching ?



What are the different types of caching ?..

Answer / bhim bharti

Caching is a technique widely used in computing to increase performance by keeping frequently accessed or expensive data in memory. In context of web application, caching is used to retain the pages or data across HTTP requests and reuse them without the expense of recreating them.ASP.NET has 3 kinds of caching strategiesOutput CachingFragment CachingData
CachingOutput Caching: Caches the dynamic output generated by a request. Some times it is useful to cache the output of a website even for a minute, which will result in a better performance. For caching the whole page the page should have OutputCache directive.<%@ OutputCache Duration="60" VaryByParam="state" %>
Fragment Caching: Caches the portion of the page generated by the request. Some times it is not practical to cache the entire page, in such cases we can cache a portion of page<%@ OutputCache Duration="120" VaryByParam="CategoryID;SelectedID"%>
Data Caching: Caches the objects programmatically. For data caching asp.net provides a cache object for eg: cache["States"] = dsStates;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is the request flow used for asp.net mvc framework? : asp.net mvc

0 Answers  


Where would you use an IHttpModule, and what are the limitations of anyapproach you might take in implementing one?

1 Answers   Siebel Systems,


In how many ways we can retrieve table records count?

0 Answers  


Descrie about response.buffer and repsonse.flush ?

2 Answers   ADP, Cognizant,


What are the various ways to send content from one page to another?

0 Answers  






Is sql backend or frontend?

0 Answers  


what is view state and its use

10 Answers   DELL, Efextra, HCL,


can u any one tell me clearly where is stored cache datas?

2 Answers   Apollo,


What does asp in asp.net stand for?

0 Answers  


How do you handle session management in ASP.NET and How do you implement them. How do you handle in case of SQLServer mode?

1 Answers   DELL, Microsoft,


What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

0 Answers  


Please brief not about xsd,xslt & xml?

0 Answers  


Categories