How to keep an object in memory for life of web app?
I want to try and implement my own caching framework in ASP.NET, not using built in caching. As a simple example, is there anyway to place some arbitrary object in memory (a single object, or maybe a List <of T>), and have it available to anyone accessing a web page on the site at any time?
Re: How to keep an object in memory for life of web app?
1) static variable
2) Cache object
3) Application variable
Re: How to keep an object in memory for life of web app?
Hey,
There is quite a lengthy discussion between Static and Application variables here:
http://lanitdev.wordpress.com/2009/0...es-in-asp-net/
That you might find of interest. And there is another discussion here:
http://weblogs.asp.net/plip/archive/.../01/40526.aspx
Hope that helps!!
Gary