Protocol::RedisSourceProtocolRedisMethodsConnection

module Connection

Methods for managing Redis connections.

Definitions

def auth(*arguments)

Authenticate to the server. See https://redis.io/commands/auth for more details.

Signature

parameter username String

Optional username, if Redis ACLs are used.

parameter password String

Required password.

Implementation

def auth(*arguments)
	call("AUTH", *arguments)
end

def echo(message)

Echo the given string. See https://redis.io/commands/echo for more details.

Signature

parameter message String

Implementation

def echo(message)
	call("ECHO", message)
end

def ping(message)

Ping the server. See https://redis.io/commands/ping for more details.

Signature

parameter message String

Implementation

def ping(message)
	call("PING", message)
end

def quit

Close the connection. See https://redis.io/commands/quit for more details.

Implementation

def quit
	call("QUIT")
end