Skip to content

Null return value in transaction or pipeline [DATAREDIS-1163] #1738

Open
@spring-projects-issues

Description

@spring-projects-issues

Sonu Kumar opened DATAREDIS-1163 and commented

In Spring Redis data, many of the places, doc says 

@return {@literal null} when used in pipeline / transaction.

 

For example in ListOperations<K,V> interface. 

 

/**
 * Append {@code value} to {@code key}.
 *
 * @param key must not be {@literal null}.
 * @param value
 * @return {@literal null} when used in pipeline / transaction.
 * @see <a href="http://redis.io/commands/rpush">Redis Documentation: RPUSH</a>
 */
@Nullable
Long rightPush(K key, V value);

 

I could not find any way to use this feature, though we can use RedisConnection to achieve the same. 

 

Especially, I'm looking to call these methods in a pipeline, RedisTemplate does not provide a direct way to create a pipeline.

 

 


No further details from DATAREDIS-1163

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions