lib/protocol/redis/methods/connection.rb in protocol-redis-0.6.0 vs lib/protocol/redis/methods/connection.rb in protocol-redis-0.6.1
- old
+ new
@@ -24,12 +24,13 @@
module Redis
module Methods
module Connection
# Authenticate to the server.
# @see https://redis.io/commands/auth
- # @param password [String]
- def auth(password)
- call("AUTH", password)
+ # @param username [String] Optional username, if Redis ACLs are used.
+ # @param password [String] Required password.
+ def auth(*arguments)
+ call("AUTH", *arguments)
end
# Echo the given string.
# @see https://redis.io/commands/echo
# @param message [String]