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

Open
wants to merge 11 commits into
base: main
Choose a base branch
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.

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.

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