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