Skip to content

Commit

Permalink
Polishing.
Browse files Browse the repository at this point in the history
Updated more javadocs where reference to a Redis command was invalid.

Original pull request: #3047
See: #3047
  • Loading branch information
marcingrzejszczak committed Nov 26, 2024
1 parent 92eda5a commit 749f5ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public interface ReactiveValueOperations<K, V> {
* @param key must not be {@literal null}.
* @param value
* @param timeout must not be {@literal null}.
* @see <a href="https://redis.io/commands/setex">Redis Documentation: SETEX</a>
* @see <a href="https://redis.io/commands/set">Redis Documentation: SET</a>
*/
Mono<Boolean> set(K key, V value, Duration timeout);

Expand Down Expand Up @@ -281,13 +281,15 @@ public interface ReactiveValueOperations<K, V> {
* @param command must not be {@literal null}.
* @return
* @since 2.1
* @see <a href="https://redis.io/commands/bitfield">Redis Documentation: BITFIELD</a>
*/
Mono<List<Long>> bitField(K key, BitFieldSubCommands command);

/**
* Removes the given {@literal key}.
*
* @param key must not be {@literal null}.
* @see <a href="https://redis.io/commands/del">Redis Documentation: DEL</a>
*/
Mono<Boolean> delete(K key);
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface ValueOperations<K, V> {
* @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 <a href="https://redis.io/commands/setex">Redis Documentation: SETEX</a>
* @see <a href="https://redis.io/commands/set">Redis Documentation: SET</a>
* @since 2.1
*/
default void set(K key, V value, Duration timeout) {
Expand All @@ -82,7 +82,7 @@ default void set(K key, V value, Duration timeout) {
* @param key must not be {@literal null}.
* @param value must not be {@literal null}.
* @return {@literal null} when used in pipeline / transaction.
* @see <a href="https://redis.io/commands/setnx">Redis Documentation: SETNX</a>
* @see <a href="https://redis.io/commands/set">Redis Documentation: SET</a>
*/
@Nullable
Boolean setIfAbsent(K key, V value);
Expand Down

0 comments on commit 749f5ff

Please sign in to comment.