DATAREDIS-1064 - Fix operation comments for lPush/rPush with pivot.

Original pull request: #499.
This commit is contained in:
wqlm
2019-11-15 11:47:41 +08:00
committed by Mark Paluch
parent c6802ba247
commit d15c6f91cc

View File

@@ -110,12 +110,13 @@ public interface ListOperations<K, V> {
Long leftPushIfPresent(K key, V value);
/**
* Prepend {@code values} to {@code key} before {@code value}.
* Append {@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 {@literal null} when used in pipeline / transaction.
* @see <a href="https://redis.io/commands/lpush">Redis Documentation: LPUSH</a>
* @see <a href="https://redis.io/commands/linsert">Redis Documentation: LINSERT</a>
*/
@Nullable
Long leftPush(K key, V pivot, V value);
@@ -166,12 +167,13 @@ public interface ListOperations<K, V> {
Long rightPushIfPresent(K key, V value);
/**
* Append {@code values} to {@code key} before {@code value}.
* Append {@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 {@literal null} when used in pipeline / transaction.
* @see <a href="https://redis.io/commands/lpush">Redis Documentation: RPUSH</a>
* @see <a href="https://redis.io/commands/linsert">Redis Documentation: LINSERT</a>
*/
@Nullable
Long rightPush(K key, V pivot, V value);