-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for zmpop and bzmpop commands #33
Conversation
Partially addresses issue #31 |
*/ | ||
def bzPopMax(timeout: Long, keys: K*): Future[Option[ScoreWithKeyValue[K,V]]] | ||
def bzPopMin(timeout: FiniteDuration, keys: K*): Future[Option[ScoreWithKeyValue[K,V]]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched all the sorted set commands from specifying timeouts for blocking operations from longs and doubles to FiniteDuration. much clearer about intent and more consistent with how other Arugula commands are implemented.
@@ -401,4 +423,11 @@ object RedisSortedSetAsyncCommands { | |||
final case class ScoreWithKeyValue[K, V](score: Double, key: K, value: V) | |||
final case class ZRange[T](start: T, end: T) | |||
final case class RangeLimit(offset: Long, count: Long) | |||
|
|||
sealed trait SortOrder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know what to call this enum. Direction didn't seem quite right to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SortPriority
maybe ? Anyway, SortOrder
works fine too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Way more explicit with Duration 👍 Thanks !
No description provided.