From 2c5aea40a854a623e200be1bc6817f12627f77c5 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Mon, 18 Nov 2019 09:59:16 +0100 Subject: [PATCH] DATAREDIS-1064 - Polishing. Tweak wording. Fix comments on ReactiveListOperations. Original pull request: #499. --- .../data/redis/core/ListOperations.java | 4 ++-- .../data/redis/core/ReactiveListOperations.java | 10 ++++++---- 2 files changed, 8 insertions(+), 6 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 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);