Very simple example to get you started, without locking or error handling: public void ProcessRequest(HttpContext context) { MyObject thing = context. Cache"object_name"; if (thing == null) { thing = new MyObject(); context. Cache"object_name" = thing; } // use thing here to process request }.
Thanks. I was suspecting that this was the way to go, but the answers I found online were (I think) assuming people already knew this much. – Joel May 17 '10 at 20:31.
I've got a custom HttpHandler in my ASP.NET application, that basically builds and returns a javascript object. I have no experience with server-side caching, and my (possibly incompetent) google searches aren't returning anything basic enough to get me started. Could anyone provide a very simple example to give me an idea of how to access and use the server-side cache from a custom HttpHandler, or, leave some links to get me started?
Thanks a lot. Additional info: I'm on IIS 6, and my code-behind is in C# (although a VB example would work as well).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.