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

Add flushCache() method for explicit flushing #66

Closed ChristianWeyer closed 10 years ago

ChristianWeyer commented 10 years ago

Needed e.g. when being notified by the server that data has changed (via Web Sockets or other means). Alternatively have a flush function which we can hook up to.

jmdobry commented 10 years ago

Does removeAll() not satisfy this scenario?

ChristianWeyer commented 10 years ago

It does. Thanks.

jmdobry commented 10 years ago

Glad to hear it!