In some respects, the Cache is similar to Application state in that it stores information accessible for all users. Application state is not available for other servers in a Web farm scenario, and
AFAIK, the same is true for Caching.
Caching allows you you to cache frequently used data, like the results of a complex query that takes a long time to run. Storing it in the cache allows you to easily reuse it without performing the same query again. The advantage of the cache is that it can clear itself automatically (i.e. when your server runs out of memory) or that you can bind dependencies to caching (i.e. remove from the cache in 20 minutes, or remove it when file X changes). This is not possible with the Application sate, so if you store too much info, your server will run out of resources.
But how about you do a little Google-ing for this? All the information you need is available on the Web.
http://www.google.com/search?hl=en&i...he+application
http://www.google.com/search?hl=en&l...=ASP.NET+Cache
http://msdn.microsoft.com/library/de...asp?frame=true
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconcacheapis.htm
It's all there. IMO, doing some investigation yourself is much more rewarding than posting a question here and waiting a day or so for an answer.....
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.