Method: Redis::Distributed#blmpop
- Defined in:
- lib/redis/distributed.rb
#blmpop(timeout, *keys, modifier: "LEFT", count: nil) ⇒ Object
Iterate over keys, blocking and removing elements from the first non empty liist found.
556 557 558 559 560 |
# File 'lib/redis/distributed.rb', line 556 def blmpop(timeout, *keys, modifier: "LEFT", count: nil) ensure_same_node(:blmpop, keys) do |node| node.blmpop(timeout, *keys, modifier: modifier, count: count) end end |