Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Web.Cache, Session level or Application level

Random quick question.

The System.Web.Cache class, at what level is the information stored? On a per session level or whole application level?

Thanks

like image 732
Sekhat Avatar asked Dec 19 '08 10:12

Sekhat


2 Answers

AFAIK at the application level.

http://msdn.microsoft.com/en-us/library/system.web.caching.cache.aspx

From the page:

One instance of this class is created per application domain, and it remains valid as long as the application domain remains active.

like image 157
mghaoui Avatar answered Sep 22 '22 01:09

mghaoui


An instance of the cache is per app domain

like image 42
redsquare Avatar answered Sep 18 '22 01:09

redsquare