spring-data-redis
spring-data-redis copied to clipboard
Null return value in transaction or pipeline [DATAREDIS-1163]
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