Method: Redis#blpop
- Defined in:
- lib/redis.rb
#blpop(keys, options = {}) ⇒ nil, [String, String]
Remove and get the first element in a list, or block until one is available.
534 535 536 537 538 539 540 |
# File 'lib/redis.rb', line 534 def blpop(keys, = {}) timeout = [:timeout] || 0 synchronize do @client.call_without_timeout [:blpop, keys, timeout] end end |