Types of caching. How to implement caching?

Answer Posted / chandra

ASP.NET Caching Features
ASP.NET Web Applications


------------------------------------------------------------
--------------------

When clients access an ASP.NET page, there are basically
two ways to provide them with the information they need:

the ASP.NET page can either obtain information from server
resources, such as from data that has been persisted to a
database, or
the ASP.NET page can obtain information from within the
application.
Retrieving information from a resource outside the
application will require more processing steps, and will
therefore require more time and resources on the server
than if the information can be obtained from within the
application space.

If the information that will be sent to the browser has
already been prepared by a previous request, the
application will be able to retrieve that information
faster if it has been stored in memory, somewhere along the
request/response stream.

Known as caching, this technique can be used to temporarily
store page output or application data either on the client
or on the server, which can then be re-used to satisfy
subsequent requests and thus avoid the overhead of re-
creating the same information.

Caching is particularly suitable when you expect to return
the same information in the same format for many different
requests.

ASP.NET provides the following types of caching that can be
used to build highly responsive Web applications:

Output caching, which caches the dynamic response generated
by a request.
Fragment caching, which caches portions of a response
generated by a request.
Data caching, which allows developers to programmatically
retain arbitrary data across requests.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rending process in ASP.NET?

706


Where the assembly is stored in asp.net?

640


What is break mode?

613


Why is global asax is used for?

602


List the events in page life cycle.

635






Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

643


Explain the difference between overriding and overloading?

623


Explain the difference between or and orelse?

625


What is the difference between abstract class vs interface? Can give me the real time examples?

562


How could you modify xaml content from javascript?

601


Explain transparent caching with aop?

603


What is the difference between the response.write() and response.output.write() methods?

611


What are the various types of cookies in asp.net?

627


Explain the features that make asp.net more used framework? : asp.net mvc

569


What is cached data phone?

614