Module: Protocol::Redis::Methods::Connection
- Defined in:
- lib/protocol/redis/methods/connection.rb
Overview
Methods for managing Redis connections.
Instance Method Summary collapse
-
#auth(*arguments) ⇒ Object
Authenticate to the server.
-
#echo(message) ⇒ Object
Echo the given string.
-
#ping(message) ⇒ Object
Ping the server.
-
#quit ⇒ Object
Close the connection.
Instance Method Details
#auth(*arguments) ⇒ Object
Authenticate to the server. See <redis.io/commands/auth> for more details.
15 16 17 |
# File 'lib/protocol/redis/methods/connection.rb', line 15 def auth(*arguments) call("AUTH", *arguments) end |
#echo(message) ⇒ Object
Echo the given string. See <redis.io/commands/echo> for more details.
22 23 24 |
# File 'lib/protocol/redis/methods/connection.rb', line 22 def echo() call("ECHO", ) end |
#ping(message) ⇒ Object
Ping the server. See <redis.io/commands/ping> for more details.
29 30 31 |
# File 'lib/protocol/redis/methods/connection.rb', line 29 def ping() call("PING", ) end |
#quit ⇒ Object
Close the connection. See <redis.io/commands/quit> for more details.
35 36 37 |
# File 'lib/protocol/redis/methods/connection.rb', line 35 def quit call("QUIT") end |