From 749f5ff3ca5de67a59d91120831fa78ee76eaa50 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 26 Nov 2024 11:29:44 +0100 Subject: [PATCH] Polishing. Updated more javadocs where reference to a Redis command was invalid. Original pull request: #3047 See: #3047 --- .../data/redis/core/ReactiveValueOperations.java | 4 +++- .../org/springframework/data/redis/core/ValueOperations.java | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/springframework/data/redis/core/ReactiveValueOperations.java b/src/main/java/org/springframework/data/redis/core/ReactiveValueOperations.java index 92a8c6540..ace20be12 100644 --- a/src/main/java/org/springframework/data/redis/core/ReactiveValueOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ReactiveValueOperations.java @@ -54,7 +54,7 @@ public interface ReactiveValueOperations { * @param key must not be {@literal null}. * @param value * @param timeout must not be {@literal null}. - * @see Redis Documentation: SETEX + * @see Redis Documentation: SET */ Mono set(K key, V value, Duration timeout); @@ -281,6 +281,7 @@ public interface ReactiveValueOperations { * @param command must not be {@literal null}. * @return * @since 2.1 + * @see Redis Documentation: BITFIELD */ Mono> bitField(K key, BitFieldSubCommands command); @@ -288,6 +289,7 @@ public interface ReactiveValueOperations { * Removes the given {@literal key}. * * @param key must not be {@literal null}. + * @see Redis Documentation: DEL */ Mono delete(K key); } diff --git a/src/main/java/org/springframework/data/redis/core/ValueOperations.java b/src/main/java/org/springframework/data/redis/core/ValueOperations.java index 260bc7c4c..7bdf6ad7c 100644 --- a/src/main/java/org/springframework/data/redis/core/ValueOperations.java +++ b/src/main/java/org/springframework/data/redis/core/ValueOperations.java @@ -62,7 +62,7 @@ public interface ValueOperations { * @param value must not be {@literal null}. * @param timeout must not be {@literal null}. * @throws IllegalArgumentException if either {@code key}, {@code value} or {@code timeout} is not present. - * @see Redis Documentation: SETEX + * @see Redis Documentation: SET * @since 2.1 */ default void set(K key, V value, Duration timeout) { @@ -82,7 +82,7 @@ public interface ValueOperations { * @param key must not be {@literal null}. * @param value must not be {@literal null}. * @return {@literal null} when used in pipeline / transaction. - * @see Redis Documentation: SETNX + * @see Redis Documentation: SET */ @Nullable Boolean setIfAbsent(K key, V value);