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

[enhancement] support for invalidate #30

Closed
ekovacs opened this issue Jul 23, 2020 · 2 comments
Closed

[enhancement] support for invalidate #30

ekovacs opened this issue Jul 23, 2020 · 2 comments

Comments

@ekovacs
Copy link

ekovacs commented Jul 23, 2020

it would be amazing feature if ttlcache would additionally support invalidation of a given cache entry besides the time based expiration.
invalidation could be sync or async (depending of a boolean flag). upon invalidation, the expiration callback could be executed.

@ekovacs ekovacs changed the title support for invalidate [enhancement] support for invalidate Jul 23, 2020
@ReneKroon
Copy link
Contributor

After v2 and #31 i will have to re-evaluate this. The API call is easy, i'm not sure if the heap removal and additional sorting are easy to do.

@ReneKroon
Copy link
Contributor

This was more of a bug than a feature. It's also available for testing on the v2 branch.

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

No branches or pull requests

2 participants