From b51f482df02cd1d9b407465cd7ab9569c56707cd Mon Sep 17 00:00:00 2001 From: SanHalacogluImproving Date: Tue, 27 Feb 2024 13:18:02 -0800 Subject: [PATCH] Minor documentation change. --- .../api/commands/SortedSetBaseCommands.java | 32 +++++++++++-------- .../glide/api/models/BaseTransaction.java | 32 +++++++++++-------- 2 files changed, 36 insertions(+), 28 deletions(-) diff --git a/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java b/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java index e6aedb8757..dbf3d02951 100644 --- a/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java +++ b/java/client/src/main/java/glide/api/commands/SortedSetBaseCommands.java @@ -12,8 +12,8 @@ */ public interface SortedSetBaseCommands { /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -36,8 +36,8 @@ CompletableFuture zadd( String key, Map membersScoresMap, ZaddOptions options, boolean changed); /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -56,8 +56,8 @@ CompletableFuture zadd( String key, Map membersScoresMap, ZaddOptions options); /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -76,8 +76,8 @@ CompletableFuture zadd( CompletableFuture zadd(String key, Map membersScoresMap, boolean changed); /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -93,9 +93,11 @@ CompletableFuture zadd( /** * Increments the score of member in the sorted set stored at key by increment - * . If member does not exist in the sorted set, it is added with - * increment as its score (as if its previous score was 0.0). If key does not - * exist, a new sorted set with the specified member as its sole member is created. + * .
+ * If member does not exist in the sorted set, it is added with + * increment as its score (as if its previous score was 0.0).
+ * If key does not exist, a new sorted set with the specified member as its sole + * member is created. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -118,9 +120,11 @@ CompletableFuture zaddIncr( /** * Increments the score of member in the sorted set stored at key by increment - * . If member does not exist in the sorted set, it is added with - * increment as its score (as if its previous score was 0.0). If key does not - * exist, a new sorted set with the specified member as its sole member is created. + * .
+ * If member does not exist in the sorted set, it is added with + * increment as its score (as if its previous score was 0.0).
+ * If key does not exist, a new sorted set with the specified member as its sole + * member is created. * * @see redis.io for more details. * @param key The key of the sorted set. diff --git a/java/client/src/main/java/glide/api/models/BaseTransaction.java b/java/client/src/main/java/glide/api/models/BaseTransaction.java index 09a5d68ece..a17337ee1a 100644 --- a/java/client/src/main/java/glide/api/models/BaseTransaction.java +++ b/java/client/src/main/java/glide/api/models/BaseTransaction.java @@ -570,8 +570,8 @@ public T unlink(String[] keys) { } /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -601,8 +601,8 @@ public T zadd( } /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -618,8 +618,8 @@ public T zadd( } /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -636,8 +636,8 @@ public T zadd( } /** - * Adds members with their scores to the sorted set stored at key. If a member is - * already a part of the sorted set, its score is updated. + * Adds members with their scores to the sorted set stored at key.
+ * If a member is already a part of the sorted set, its score is updated. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -650,9 +650,11 @@ public T zadd(@NonNull String key, @NonNull Map membersScoresMap /** * Increments the score of member in the sorted set stored at key by increment - * . If member does not exist in the sorted set, it is added with - * increment as its score (as if its previous score was 0.0). If key does not - * exist, a new sorted set with the specified member as its sole member is created. + * .
+ * If member does not exist in the sorted set, it is added with + * increment as its score (as if its previous score was 0.0).
+ * If key does not exist, a new sorted set with the specified member as its sole + * member is created. * * @see redis.io for more details. * @param key The key of the sorted set. @@ -678,9 +680,11 @@ public T zaddIncr( /** * Increments the score of member in the sorted set stored at key by increment - * . If member does not exist in the sorted set, it is added with - * increment as its score (as if its previous score was 0.0). If key does not - * exist, a new sorted set with the specified member as its sole member is created. + * .
+ * If member does not exist in the sorted set, it is added with + * increment as its score (as if its previous score was 0.0).
+ * If key does not exist, a new sorted set with the specified member as its sole + * member is created. * * @see redis.io for more details. * @param key The key of the sorted set.