Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: ExpireNow #247

Open
Fonta opened this issue Oct 13, 2016 · 4 comments
Open

Feature request: ExpireNow #247

Fonta opened this issue Oct 13, 2016 · 4 comments

Comments

@Fonta
Copy link

Fonta commented Oct 13, 2016

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
Copy link

+1

@tj-recess
Copy link

Would Cache#removeAll() do the same thing?

@Fonta
Copy link
Author

Fonta commented Jan 14, 2017

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

@sanyesz123
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants