spring-projects / spring-projects/spring-data-redis

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

Open
#1,738 1 comment 0 reactions 1 assignee View on GitHub

@mp911de is already working on this.

Since Dec 30, 2020.

type: bug type: documentation
Dominant language
Java
Stars
1.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.