title: ASP.NET MVC and MemoryCache - how do i use it?
body: <p>I have this in my Application_Start:</p>
  
  <pre><code>var crumbsCache = new MemoryCache("breadCrumbsNames");
  var crumbsList = new List&lt;CacheItem&gt;
                      {
                          //list of new CacheItem();
                      };
  foreach (var cacheItem in crumbsList)
  {
      crumbsCache.Add(cacheItem, new CacheItemPolicy());
  }
  </code></pre>
  
  <p>Now, in my controllers i am doing this:</p>
  
  <pre><code>var cache = new MemoryCache("breadCrumbsNames");
  var cacheItem = cache.GetCacheItem("nameOfCacheItem");
  </code></pre>
  
  <p>But then cacheItem is always null, what am I doing wrong?</p>