code: function(key) {
            if (capacity < Number.MAX_VALUE) {
              var lruEntry = lruHash[key];
  
              if (!lruEntry) return;
  
              if (lruEntry === freshEnd) freshEnd = lruEntry.p;
              if (lruEntry === staleEnd) staleEnd = lruEntry.n;
              link(lruEntry.n,lruEntry.p);
  
              delete lruHash[key];
            }
  
            if (!(key in data)) return;
  
            delete data[key];
            size--;
          }
docs: @ngdoc method
  @name $cacheFactory.Cache#remove
  @kind function
  
  @description
  Removes an entry from the {@link $cacheFactory.Cache Cache} object.
  
  @param {string} key the key of the entry to be removed