title: Has something changed in caching data in ASP.NET-MVC3?
body: <p>I need an application level cache in my MVC3 project.</p>
  
  <p>I want to use something like this in a controller:</p>
  
  <pre><code>using System.Web.Caching;    
  
  protected IMyStuff GetStuff(string stuffkey)
  {
      var ret = Cache[stuffkey];
      if (ret == null)
      {
          ret = LoadStuffFromDB(stuffkey);
          Cache[stuffkey] = ret;
      }
      return (IMyStuff)ret;
  }
  </code></pre>
  
  <p>This fails because Cache["foo"] don't compile as "System.Web.Caching.Cache is a 'type' but used like a 'variable'".</p>
  
  <p>I see that Cache is a class, but there are quite a few examples on the net when it is used like Session["asdf"] in the controller like it is a property.</p>
  
  <p>What am I doing wrong?</p>