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 f169d718a..641d5be6d 100644 --- a/src/main/java/org/springframework/data/redis/core/ListOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ListOperations.java @@ -110,7 +110,7 @@ public interface ListOperations { 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 { 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}. diff --git a/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java b/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java index 168eed2e9..ba67ae474 100644 --- a/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ReactiveListOperations.java @@ -104,12 +104,13 @@ public interface ReactiveListOperations { Mono 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 Redis Documentation: LPUSH + * @see Redis Documentation: LINSERT */ Mono leftPush(K key, V pivot, V value); @@ -155,12 +156,13 @@ public interface ReactiveListOperations { Mono 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 Redis Documentation: RPUSH + * @see Redis Documentation: LINSERT */ Mono rightPush(K key, V pivot, V value);