ristretto icon indicating copy to clipboard operation
ristretto copied to clipboard

feat: load value if not present

Open proost opened this issue 1 year ago • 1 comments

Resolve: https://github.com/dgraph-io/ristretto/issues/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 avatar Sep 03 '23 10:09 proost

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

proost avatar Sep 16 '23 13:09 proost

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

github-actions[bot] avatar Jul 13 '24 01:07 github-actions[bot]