Skip to content

setIfAbsent return value is unclear #3414

Description

@ML-Marco

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions