ristretto
ristretto copied to clipboard
feat: load value if not present
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.
@joshua-goldstein @mangalaman93 @harshil-goel @all-seeing-code can you give me any feedback? If this feature is unnecessary, I will close the PR.
This PR has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.