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

feat: load value if not present #355

Closed
wants to merge 11 commits into from

Conversation

proost
Copy link
Contributor

@proost proost commented Sep 3, 2023

Resolve: #332

Get value if cache hit, or load value, set to cache and return loaded value.

only one go-routine can execute load function per key.

@proost proost changed the title feat: add "GetIfPresent" feat: load value if not present Sep 3, 2023
@proost
Copy link
Contributor Author

proost commented Sep 16, 2023

@joshua-goldstein @mangalaman93 @harshil-goel @all-seeing-code
can you give me any feedback? If this feature is unnecessary, I will close the PR.

Copy link

This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.

@github-actions github-actions bot added the Stale label Jul 13, 2024
@github-actions github-actions bot closed this Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

[FEATURE]: Loading or Compute If key is not present
1 participant