Open
Description
I want to write the following
let old_value = cache.get(key)
// do some stuff to create new_value
cache.insert(key, new_value) BUT only if current cache.get(key) is still old_value
Is there a way to do that?
It seems like it must be in the documentation somewhere, but I can't find it.
Many thanks.
Metadata
Metadata
Assignees
Labels
No labels