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);