module Redis::Commands::SortedSets
def bzpopmax(*args)
-
(nil)
- when no element could be popped and the timeout expired -
(Array
- a touple of key, member and score)
Other tags:
- Example: Popping a member from multiple sorted sets -
Example: Popping a member from a sorted set -
def bzpopmax(*args) _bpop(:bzpopmax, args) do |reply| reply.is_a?(Array) ? [reply[0], reply[1], Floatify.call(reply[2])] : reply end end