Method: Redis::Distributed#blmove
- Defined in:
- lib/redis/distributed.rb
#blmove(source, destination, where_source, where_destination, timeout: 0) ⇒ Object
Remove the first/last element in a list and append/prepend it to another list and return it, or block until one is available.
422 423 424 425 426 |
# File 'lib/redis/distributed.rb', line 422 def blmove(source, destination, where_source, where_destination, timeout: 0) ensure_same_node(:lmove, [source, destination]) do |node| node.blmove(source, destination, where_source, where_destination, timeout: timeout) end end |