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

implement GetOrAdd to LRU #170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

implement GetOrAdd to LRU #170

wants to merge 1 commit into from

Conversation

raf555
Copy link

@raf555 raf555 commented Feb 3, 2024

Sometimes there would be a case where we want to get the value while updating the recent-ness and add the value if it's not found. PeekOrAdd does have similar logic but does not update the recent-ness, hence this PR.

@hashicorp-cla
Copy link

hashicorp-cla commented Feb 3, 2024

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

None yet

2 participants