Module: Protocol::Redis::Methods::Connection
- Defined in:
- lib/protocol/redis/methods/connection.rb
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.
14 15 16 |
# File 'lib/protocol/redis/methods/connection.rb', line 14 def auth(*arguments) call("AUTH", *arguments) end |
#echo(message) ⇒ Object
Echo the given string.
21 22 23 |
# File 'lib/protocol/redis/methods/connection.rb', line 21 def echo() call("ECHO", ) end |
#ping(message) ⇒ Object
Ping the server.
28 29 30 |
# File 'lib/protocol/redis/methods/connection.rb', line 28 def ping() call("PING", ) end |
#quit ⇒ Object
Close the connection.
34 35 36 |
# File 'lib/protocol/redis/methods/connection.rb', line 34 def quit call("QUIT") end |