Groups | Blog | Home
all groups > asp.net caching > january 2005 >

asp.net caching : General Caching Question - Cache, Session and Application?


Jay
1/6/2005 6:54:47 AM
How does Cache relate to Session and Application?

If I store data in Session then it is specific to my session. Application
data is available to all users of a website. What about Cache? How does it
work with respect to specific users and for all users.

Jay

lukezhan NO[at]SPAM online.microsoft.com
1/7/2005 2:56:33 AM
Hi Jay,

ASP.NET provides two types of caching: The first is called output caching,
which allows you to store dynamic page and user control responses on any
HTTP 1.1 cache-capable device in the output stream, from the originating
server to the requesting browser. This can be only avalible for one
particualr user

The second type of caching is traditional application data caching, which
you can use to programmatically store arbitrary objects, such as data sets,
to server memory so that your application can save the time and resources
it takes to recreate them. This is shared for all users browsing the same
ASP.NET application.

Here are two good articles abour ASP.NET caching, you may begin with them:

INFO: ASP.NET Caching Overview
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q307225

How To Cache in ASP.NET by Using Visual C# .NET
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q323290

Hope this help,

Luke
AddThis Social Bookmark Button