caching - How to server-side cache ASP.NET custom HttpHandler response -


I have found a custom HTML handler in my ASP.NET application, which basically creates JavaScript objects and returns . I have no experience with server-side caching, and my (potentially disabled) Google search is not returning anything enough to get me started.

Can someone provide me a simple example to give an idea how to use and use the server-side cache with a custom HTML handler, or leave some links to start something? Thanks a lot.

Additional information: I am on IIS 6 and my code is back in C # (although VB example will also work).

Very easy to get you started without dealing with locking or error:

< Pre> public zero process request (http reference reference) {MyObject thing = context.Cache ["object_name"]; If (talk == tap) {thing = new MyObject (); Context.Cache ["object_name"] = Object; } // Use here to process the request}

Comments