You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Javadoc for org.springframework.data.redis.core.ValueOperations#setIfAbsent(K, V) is:
/** * Set the {@code value} for {@code key} if {@code key} is absent. * * @param key must not be {@literal null}. * @param value must not be {@literal null}. * @return {@literal null} when used in pipeline / transaction. * @see <a href="https://redis.io/commands/set">Redis Documentation: SET</a> */
This does not mention what the method returns when not used in pipeline / transaction.
Activity
AzazelSensei commentedon Aug 14, 2026
#3415
[-]setIfAbsent return value is unclear[/-][+]Document setNX / setIfAbsent return values[/+][-]Document setNX / setIfAbsent return values[/-][+]Document conditional set return values[/+]Document conditional set return values.
Document conditional set return values.
Document conditional set return values.