What is caching? What are different ways of caching in ASP.NET?

Questions by avkdsiva   answers by avkdsiva

Showing Answers 1 - 21 of 21 Answers

yv_harish

  • Feb 19th, 2007
 

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

jayachandra

  • Feb 27th, 2007
 

cache is a tecnique used to fast access of the requested page
input cache
output cache
fragment cache 

  Was this answer useful?  Yes

shivaprasad lagisetty

  • Mar 6th, 2007
 

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"%>
Types: 
1. Ouput cache 

2. Fragment caching

3. Datacaching

Amit sharma

  • Mar 23rd, 2007
 

Caching is the process of frequently used data on the server to fulfill subsequnt request.
Types
1. output caching
2. page caching (user control)

  Was this answer useful?  Yes

kirangiet

  • Oct 21st, 2009
 

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.

  Was this answer useful?  Yes

ranjani

  • Feb 5th, 2012
 

To Imporve the performance of Web Pages, we use Caching.
Caching is a used for persisting data in memory for
immediate acces to the program calls. It has three types :

1. Output Caching - to fetch page level information and data
2. Fragment Caching - to cache the information of a
structure level.
3. Application Caching - to fetch the information of an
application

  Was this answer useful?  Yes

Caching on the web is that it avoids a roundtrip to the origin web server each time a resource is requested and instead retrieves the file from a local computers browser cache or a proxy cache closer to the user.

1. output caching
2. fragment caching
3. data caching

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions