Skip to content

Commit

Permalink
added some missing SortedSetApi methods to Cluster classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Siatkowski committed Aug 28, 2019
1 parent 23ff83c commit 55811dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 7 additions & 4 deletions src/main/scala/com/redis/cluster/SortedSetOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,12 @@ trait SortedSetOps extends SortedSetApi {
n.zinterstoreWeighted(dstKey, kws, aggregate)
}

// todo: implement
override def zrangebylex[A](key: Any, min: String, max: String, limit: Option[(Int, Int)])(implicit format: Format, parse: Parse[A]): Option[List[A]] = ???
override def zrangebylex[A](key: Any, min: String, max: String, limit: Option[(Int, Int)])
(implicit format: Format, parse: Parse[A]): Option[List[A]] =
processForKey(key)(_.zrangebylex(key, min, max, limit))

override def zscan[A](key: Any, cursor: Int, pattern: Any, count: Int)
(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])] =
processForKey(key)(_.zscan(key, cursor, pattern, count))

// todo: implement
override def zscan[A](key: Any, cursor: Int, pattern: Any, count: Int)(implicit format: Format, parse: Parse[A]): Option[(Option[Int], Option[List[Option[A]]])] = ???
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ trait ClusterUnimplementedMethods

override protected def setConfig(): Unit = ()

override protected def zrangebylexT(): Unit = ()

override protected def sort(): Unit = ()

override protected def sortNStore(): Unit = ()
Expand Down

0 comments on commit 55811dc

Please sign in to comment.