Skip to content

Commit

Permalink
Minor documentation change.
Browse files Browse the repository at this point in the history
  • Loading branch information
SanHalacogluImproving committed Feb 27, 2024
1 parent 6aea6ac commit b51f482
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/
public interface SortedSetBaseCommands {
/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -36,8 +36,8 @@ CompletableFuture<Long> zadd(
String key, Map<String, Double> membersScoresMap, ZaddOptions options, boolean changed);

/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -56,8 +56,8 @@ CompletableFuture<Long> zadd(
String key, Map<String, Double> membersScoresMap, ZaddOptions options);

/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -76,8 +76,8 @@ CompletableFuture<Long> zadd(
CompletableFuture<Long> zadd(String key, Map<String, Double> membersScoresMap, boolean changed);

/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -93,9 +93,11 @@ CompletableFuture<Long> zadd(

/**
* Increments the score of member in the sorted set stored at <code>key</code> by <code>increment
* </code>. If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0). If <code>key</code> does not
* exist, a new sorted set with the specified member as its sole member is created.
* </code>.<br>
* If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0).<br>
* If <code>key</code> does not exist, a new sorted set with the specified member as its sole
* member is created.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -118,9 +120,11 @@ CompletableFuture<Double> zaddIncr(

/**
* Increments the score of member in the sorted set stored at <code>key</code> by <code>increment
* </code>. If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0). If <code>key</code> does not
* exist, a new sorted set with the specified member as its sole member is created.
* </code>.<br>
* If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0).<br>
* If <code>key</code> does not exist, a new sorted set with the specified member as its sole
* member is created.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand Down
32 changes: 18 additions & 14 deletions java/client/src/main/java/glide/api/models/BaseTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,8 @@ public T unlink(String[] keys) {
}

/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand Down Expand Up @@ -601,8 +601,8 @@ public T zadd(
}

/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -618,8 +618,8 @@ public T zadd(
}

/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -636,8 +636,8 @@ public T zadd(
}

/**
* Adds members with their scores to the sorted set stored at <code>key</code>. 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 <code>key</code>.<br>
* If a member is already a part of the sorted set, its score is updated.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -650,9 +650,11 @@ public T zadd(@NonNull String key, @NonNull Map<String, Double> membersScoresMap

/**
* Increments the score of member in the sorted set stored at <code>key</code> by <code>increment
* </code>. If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0). If <code>key</code> does not
* exist, a new sorted set with the specified member as its sole member is created.
* </code>.<br>
* If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0).<br>
* If <code>key</code> does not exist, a new sorted set with the specified member as its sole
* member is created.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand All @@ -678,9 +680,11 @@ public T zaddIncr(

/**
* Increments the score of member in the sorted set stored at <code>key</code> by <code>increment
* </code>. If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0). If <code>key</code> does not
* exist, a new sorted set with the specified member as its sole member is created.
* </code>.<br>
* If <code>member</code> does not exist in the sorted set, it is added with <code>
* increment</code> as its score (as if its previous score was 0.0).<br>
* If <code>key</code> does not exist, a new sorted set with the specified member as its sole
* member is created.
*
* @see <a href="https://redis.io/commands/zadd/">redis.io</a> for more details.
* @param key The key of the sorted set.
Expand Down

0 comments on commit b51f482

Please sign in to comment.