title: What's the difference between the HttpRuntime Cache and the HttpContext Cache?
body: <p>I know there is a very similar question <a href="https://stackoverflow.com/questions/863654/difference-b-w-httpruntime-cache-vs-httpcontext-current-cache">here</a> but I was hoping to get a better explination. Why would I ever use HttpContext.Cache instead of HttpRuntime.Cache if the HttpContext really uses the HttpRuntime.Cache behind the scenes?</p>
  <p>In the article <a href="http://www.codeproject.com/KB/aspnet/ASPNETService.aspx" rel="nofollow noreferrer">Simulate a Windows Service using ASP.NET to run scheduled jobs</a> Omar uses the HttpContext to store his cache items, but when Jeff Atwood Implemented it <a href="https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/">here</a> he chose to use the HttpRuntime instead. Obviously in this particular situation it makes sense since since you don't have to do a web request to add the cache item back into the HttpContext.</p>
  <p>However I'm looking for some good pointers as to when to use one versus the other.</p>