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

LRUCache usage is surprising #750

Open
andrew-stevenson-sociomantic opened this issue Sep 18, 2019 · 0 comments
Open

LRUCache usage is surprising #750

andrew-stevenson-sociomantic opened this issue Sep 18, 2019 · 0 comments

Comments

@andrew-stevenson-sociomantic
Copy link
Contributor

LRUcache does not update the recency of items retrieved with get, only with special get...refresh... methods. This is a surprising, and not well documented API.

get() should be overloaded to update recency and perhaps a getWithoutRefresh method be added for anyone who wants that behaviour - or maybe that should be peek?

See also #746

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

1 participant