class Redis

def brpoplpush(source, destination, options = {})

Returns:
  • (nil, String) -

Parameters:
  • options (Hash) --
  • destination (String) -- destination key
  • source (String) -- source key
def brpoplpush(source, destination, options = {})
  case options
  when Integer
    # Issue deprecation notice in obnoxious mode...
    options = { :timeout => options }
  end
  timeout = options[:timeout] || 0
  synchronize do |client|
    command = [:brpoplpush, source, destination, timeout]
    timeout += client.timeout if timeout > 0
    client.call_with_timeout(command, timeout)
  end
end