Method: Redis#auth

Defined in:
lib/redis.rb

#auth(password) ⇒ String

Authenticate to the server.

Parameters:

  • password (String)

    must match the password specified in the requirepass directive in the configuration file

Returns:

  • (String)

    OK



62
63
64
65
66
# File 'lib/redis.rb', line 62

def auth(password)
  synchronize do |client|
    client.call([:auth, password])
  end
end