angular-cache icon indicating copy to clipboard operation
angular-cache copied to clipboard

Feature request: ExpireNow

Open Fonta opened this issue 9 years ago • 4 comments

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();

Fonta avatar Oct 13 '16 20:10 Fonta

+1

luizotcarvalho avatar Jan 10 '17 18:01 luizotcarvalho

Would Cache#removeAll() do the same thing?

tj-recess avatar Jan 14 '17 14:01 tj-recess

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

Fonta avatar Jan 14 '17 14:01 Fonta

+1

sanyesz123 avatar Feb 02 '17 11:02 sanyesz123