From d15c6f91cc206dd2356ca62e56b876b4729bfd2c Mon Sep 17 00:00:00 2001 From: wqlm <649924325@qq.com> Date: Fri, 15 Nov 2019 11:47:41 +0800 Subject: [PATCH] DATAREDIS-1064 - Fix operation comments for lPush/rPush with pivot. Original pull request: #499. --- .../data/redis/core/ListOperations.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/springframework/data/redis/core/ListOperations.java b/src/main/java/org/springframework/data/redis/core/ListOperations.java index 758a9701a..f169d718a 100644 --- a/src/main/java/org/springframework/data/redis/core/ListOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ListOperations.java @@ -110,12 +110,13 @@ public interface ListOperations { 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 Redis Documentation: LPUSH + * @see Redis Documentation: LINSERT */ @Nullable Long leftPush(K key, V pivot, V value); @@ -166,12 +167,13 @@ public interface ListOperations { 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 Redis Documentation: RPUSH + * @see Redis Documentation: LINSERT */ @Nullable Long rightPush(K key, V pivot, V value);