Skip to content

Commit

Permalink
Fixes #20: min parameter in zrevrangebylex
Browse files Browse the repository at this point in the history
  • Loading branch information
kardapoltsev committed Oct 25, 2020
1 parent 7b7f7a3 commit 63f206d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/redis/commands/SortedSets.scala
Expand Up @@ -93,7 +93,7 @@ trait SortedSets extends Request {
send(Zrangebylex(key, min.getOrElse("-"), max.getOrElse("+"), limit))

def zrevrangebylex[R: ByteStringDeserializer](key: String, max: Option[String], min: Option[String], limit: Option[(Long, Long)] = None): Future[Seq[R]] =
send(Zrevrangebylex(key, max.getOrElse("+"), max.getOrElse("-"), limit))
send(Zrevrangebylex(key, max.getOrElse("+"), min.getOrElse("-"), limit))

def zscan[R: ByteStringDeserializer](key: String, cursor: Int = 0, count: Option[Int] = None, matchGlob: Option[String] = None): Future[Cursor[Seq[(Double, R)]]] =
send(Zscan(key, cursor, count, matchGlob))
Expand Down

0 comments on commit 63f206d

Please sign in to comment.