Module: Protocol::Redis::Methods::Connection
- Defined in:
- lib/protocol/redis/methods/connection.rb
Instance Method Summary collapse
-
#auth(password) ⇒ 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(password) ⇒ Object
Authenticate to the server.
30 31 32 |
# File 'lib/protocol/redis/methods/connection.rb', line 30 def auth(password) call("AUTH", password) end |
#echo(message) ⇒ Object
Echo the given string.
37 38 39 |
# File 'lib/protocol/redis/methods/connection.rb', line 37 def echo() call("ECHO", ) end |
#ping(message) ⇒ Object
Ping the server.
44 45 46 |
# File 'lib/protocol/redis/methods/connection.rb', line 44 def ping() call("PING", ) end |
#quit ⇒ Object
Close the connection.
50 51 52 |
# File 'lib/protocol/redis/methods/connection.rb', line 50 def quit call("QUIT") end |