Skip to content

Commit

Permalink
Add scaladoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rfmejia committed May 5, 2021
1 parent 3949f54 commit cdc9b96
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions redis/src/main/scala/zio/redis/api/SortedSets.scala
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,14 @@ trait SortedSets {
command.run((key, range))
}

/**
* Subtract multiple sorted sets and return members.
*
* @param inputKeysNum Number of input keys
* @param key Key of a sorted set
* @param keys Keys of other sorted sets
* @return Chunk of differences between the first and successive input sorted sets.
*/
final def zDiff[K: Schema, M: Schema](
inputKeysNum: Long,
key: K,
Expand All @@ -163,6 +171,14 @@ trait SortedSets {
command.run((inputKeysNum, (key, keys.toList)))
}

/**
* Subtract multiple sorted sets and return members and their associated score.
*
* @param inputKeysNum Number of input keys
* @param key Key of a sorted set
* @param keys Keys of other sorted sets
* @return Chunk of differences and scores between the first and successive input sorted sets.
*/
final def zDiffWithScores[K: Schema, M: Schema](
inputKeysNum: Long,
key: K,
Expand Down

0 comments on commit cdc9b96

Please sign in to comment.