How to save data between calls to a IHttpHandler?

Posted by bartek on Stack Overflow See other posts from Stack Overflow or by bartek
Published on 2010-03-17T14:26:57Z Indexed on 2010/03/17 14:41 UTC
Read the original article Hit count: 335

Filed under:
|
|

I have a IHttpHandler that acts as a source to a jQuery Autocomplete input field. In the constructor of the handler I generate an index that remains fairly static between request (needs to be rebuilt maybe once a day).

How can I cache the the index between calls? Debugging indicates that the constructor is called for each request. I've set IsReusable to "false".

© Stack Overflow or respective owner

Related posts about httphandler

Related posts about ASP.NET