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: ExpireNow #247

Open Fonta opened 8 years ago

Fonta commented 8 years ago

Could you make a function to expire a cache right now in stead of waiting for the maxage? I'm asking this because I would like to have an option to start the onExpire process. So it would look like this:

CacheFactory.get('cachedStuff').expireNow();

luizotcarvalho commented 7 years ago

+1

tj-recess commented 7 years ago

Would Cache#removeAll() do the same thing?

Fonta commented 7 years ago

@tj-recess Removeall doesn't trigger the onexpire process.

sanyesz123 commented 7 years ago

+1