spring-projects / spring-projects/spring-data-redis
Null return value in transaction or pipeline [DATAREDIS-1163]
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.