spring-data-redis icon indicating copy to clipboard operation
spring-data-redis copied to clipboard

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

Open spring-projects-issues opened this issue 4 years ago • 1 comments

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

spring-projects-issues avatar Jun 06 '20 13:06 spring-projects-issues

Sonu Kumar commented

Hi Christoph Strobl 

Did you get any chance to look into this?

spring-projects-issues avatar Jun 26 '20 18:06 spring-projects-issues