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 a query string in a url?

0 Answers  


Describe the .net base class library.

0 Answers  


What is ISAPI?

2 Answers   IBM,


Where you store Connection string in "Web.Config" file in ASP.NET?

0 Answers   Sans Pareil IT Services,


How many types of validation controls are provided by ASP.NET?

8 Answers  






When do you set "<IDENTITY impersonate="true" />" ?

1 Answers  


What is mvc in asp.net tutorial? : Asp.Net MVC

0 Answers  


What are the asp.net security controls?

0 Answers  


What are assemblies and namespaces and explain the difference between them ?

0 Answers  


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

0 Answers  


Explain what are delegates?

0 Answers  


What is the use of web.config and machine.config files?

0 Answers   Amdocs,


Categories