title: Problem Using the System.Web.Caching.Cache Class in ASP.NET
body: <p>So I am working on a project which uses ASP.NET.  I am trying to call Cache["key"] but the compiler complains about how System.Web.Caching.Cache is "nat valid at this point".</p>
  
  <p>If I call Cache obj = new Cache(); the obj is always null.</p>
  
  <p>I can access HttpContext.Current.Cache - but this doesnt let me specify an absolute expiration and sliding expiration in the Insert() method.</p>
  
  <p>Can someone help me?</p>