Module: Oxblood::Commands::Server
- Included in:
- Oxblood::Commands
- Defined in:
- lib/oxblood/commands/server.rb
Instance Method Summary collapse
-
#flushdb ⇒ String
Remove all keys from the current database.
-
#info(section = nil) ⇒ String
Returns information and statistics about the server in a format that is simple to parse by computers and easy to read by humans.
Instance Method Details
#flushdb ⇒ String
Remove all keys from the current database
8 9 10 |
# File 'lib/oxblood/commands/server.rb', line 8 def flushdb run(:FLUSHDB) end |
#info(section = nil) ⇒ String
Returns information and statistics about the server in a format that is simple to parse by computers and easy to read by humans
19 20 21 |
# File 'lib/oxblood/commands/server.rb', line 19 def info(section = nil) section ? run(:INFO, section) : run(:INFO) end |