Method: Redis::Commands::SortedSets#bzpopmax
- Defined in:
- lib/redis/commands/sorted_sets.rb
#bzpopmax(*args) ⇒ Array<String, String, Float>?
Removes and returns up to count members with the highest scores in the sorted set stored at keys,
or block until one is available.
185 186 187 188 189 |
# File 'lib/redis/commands/sorted_sets.rb', line 185 def bzpopmax(*args) _bpop(:bzpopmax, args) do |reply| reply.is_a?(Array) ? [reply[0], reply[1], Floatify.call(reply[2])] : reply end end |