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|
    client.call_without_timeout [:brpoplpush, source, destination, timeout]
  end
end