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