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

Time based LRU Map #579

Open
raycardillo opened this issue Dec 30, 2019 · 1 comment
Open

Time based LRU Map #579

raycardillo opened this issue Dec 30, 2019 · 1 comment

Comments

@raycardillo
Copy link

We have a LruMap but we don't have a time based cache or map. The concepts are similar and it should be easy to add on top of the existing LruMap implementation but it would be good to keep them separate to avoid the extra overhead that often comes with a time based cache. Such implementations can get very sophisticated and difficult to meet every use case, but a simple practical approach would make a nice contribution that would satisfy most typical apps that just need a simple time based Map (e.g., would be useful when building a Map of ephemeral data such as Bluetooth devices or WiFi connections).

@raycardillo
Copy link
Author

I'll be submitting a PR for this soon. Just finishing up test cases before submitting the PR.

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

2 participants