rollback
Rolls back any prepared value for the given key.
This method removes the key preparation regardless of its current value. Use this when you want to unconditionally release a key reservation.
Return
A Mono emitting true if rollback succeeded, false if key was not prepared
Parameters
key
The key to rollback
Rolls back a prepared key only if it matches the specified value.
This conditional rollback ensures atomicity by only releasing the key if it contains the expected value. This prevents race conditions where another operation has modified the prepared value.
Return
A Mono emitting true if rollback succeeded with matching value, false otherwise
Parameters
key
The key to rollback
value
The expected value that must match for rollback to succeed