jmdobry / angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.
http://jmdobry.github.io/angular-cache
MIT License
1.39k stars 156 forks source link

Feature request: Cache.getAllValues #205

Closed Toub closed 8 years ago

Toub commented 8 years ago

It would be useful to add a method in order to retrieve all items from cache:

function getAllValues(){
   return this.keys().reduce(function (values, key) {
      values.push(cache.get(key));
      return values;
   }, []);
}