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

Add ttl eviction policy #62

Open
erni27 opened this issue Feb 24, 2024 · 0 comments
Open

Add ttl eviction policy #62

erni27 opened this issue Feb 24, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@erni27
Copy link
Owner

erni27 commented Feb 24, 2024

Although imcache supports entry ttl, it doesn't support policy evicting the entries by their expiration (ttl) timestamp (currently supported policies: lru, lfu and rand).

Add the new eviction policy EvictionPolicyTTL. The binary heap could be used as the backing data structure.

@erni27 erni27 added the enhancement New feature or request label Feb 24, 2024
@erni27 erni27 added this to the 1.3.0 Release milestone Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant