DATAREDIS-1064 - Polishing.

Tweak wording. Fix comments on ReactiveListOperations.

Original pull request: #499.
This commit is contained in:
Mark Paluch
2019-11-18 09:59:16 +01:00
parent d15c6f91cc
commit 2c5aea40a8
2 changed files with 8 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ public interface ListOperations<K, V> {
Long leftPushIfPresent(K key, V value);
/**
* Append {@code value} to {@code key} before {@code pivot}.
* Insert {@code value} to {@code key} before {@code pivot}.
*
* @param key must not be {@literal null}.
* @param pivot must not be {@literal null}.
@@ -167,7 +167,7 @@ public interface ListOperations<K, V> {
Long rightPushIfPresent(K key, V value);
/**
* Append {@code value} to {@code key} after {@code pivot}.
* Insert {@code value} to {@code key} after {@code pivot}.
*
* @param key must not be {@literal null}.
* @param pivot must not be {@literal null}.

View File

@@ -104,12 +104,13 @@ public interface ReactiveListOperations<K, V> {
Mono<Long> leftPushIfPresent(K key, V value);
/**
* Prepend {@code values} to {@code key} before {@code value}.
* Insert {@code value} to {@code key} before {@code pivot}.
*
* @param key must not be {@literal null}.
* @param pivot must not be {@literal null}.
* @param value
* @return
* @see <a href="https://redis.io/commands/lpush">Redis Documentation: LPUSH</a>
* @see <a href="https://redis.io/commands/linsert">Redis Documentation: LINSERT</a>
*/
Mono<Long> leftPush(K key, V pivot, V value);
@@ -155,12 +156,13 @@ public interface ReactiveListOperations<K, V> {
Mono<Long> rightPushIfPresent(K key, V value);
/**
* Append {@code values} to {@code key} before {@code value}.
* Insert {@code value} to {@code key} after {@code pivot}.
*
* @param key must not be {@literal null}.
* @param pivot must not be {@literal null}.
* @param value
* @return
* @see <a href="https://redis.io/commands/lpush">Redis Documentation: RPUSH</a>
* @see <a href="https://redis.io/commands/linsert">Redis Documentation: LINSERT</a>
*/
Mono<Long> rightPush(K key, V pivot, V value);