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

How/why is this better than Angular's $cacheFactory? #206

Closed janpio closed 8 years ago

janpio commented 8 years ago

This may seem like a silly question to you, but how and why is this better than Angular's $cacheFactory?

jmdobry commented 8 years ago
Feature $cacheFactory angular-cache
core implementation usable outside of Angular no yes
key/value store yes yes
in-memory support yes yes
localStorage support no yes
sessionStorage support no yes
custom storage support no yes
can set maximum capacity yes yes
LRU support yes yes
support for time-based expiration of items no yes
remove all expired items n/a yes
"touch" an item n/a yes
execute callback when an item expires n/a yes
get info about cache yes yes
get info about single item no yes
get item by key yes yes
remove item by key yes yes
remove all items yes yes
get keys of all caches no yes
clear all caches no yes
disable/enable a cache no yes
"touch" all items in all caches n/a yes
remove expired items from all caches n/a yes
get all keys in a cache no yes
clear a cache on a given interval no yes

Closing because I’m not sure this is an issue, if you are convinced that this is really a bug, please feel free to re-open the issue and add more information:

Otherwise support is done via the mailing list.

janpio commented 8 years ago

Thanks.

(Did I miss this in the readme or did I muss an official website? Otherwise this should be added - valuable information.)