class Redis

def brpoplpush(source, destination, deprecated_timeout = 0, timeout: deprecated_timeout)

Returns:
  • (nil, String) -

Parameters:
  • options (Hash) --
  • destination (String) -- destination key
  • source (String) -- source key
def brpoplpush(source, destination, deprecated_timeout = 0, timeout: deprecated_timeout)
  synchronize do |client|
    command = [:brpoplpush, source, destination, timeout]
    timeout += client.timeout if timeout > 0
    client.call_with_timeout(command, timeout)
  end
end