Reputation: 18746
I'm in a webapplication so either HttpContext
or HttpContextBase
will be available. I'm wondering what are the differences that would weigh in on choosing one over the other if any?
http://msdn.microsoft.com/en-us/library/system.runtime.caching.aspx
vs.
http://msdn.microsoft.com/en-us/library/system.web.caching.cache.aspx
Upvotes: 0
Views: 423
Reputation: 700152
Well, this sentence in the System.Runtime.Caching
documentation says most of it:
"The classes in this namespace provide a way to use caching facilities like those in ASP.NET, but without a dependency on the System.Web assembly."
Use the one in the System.Web
namespace if it's a web application, and the other if it's not.
Upvotes: 2