Module: Oxblood::Commands::Server

Included in:
Oxblood::Commands
Defined in:
lib/oxblood/commands/server.rb

Instance Method Summary collapse

Instance Method Details

#flushdbString

Remove all keys from the current database

Returns:

  • (String)

    should always return ‘OK’

See Also:



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

Parameters:

  • section (String) (defaults to: nil)

    used to select a specific section of information

Returns:

  • (String)

    raw redis server response as a collection of text lines.

See Also:



19
20
21
# File 'lib/oxblood/commands/server.rb', line 19

def info(section = nil)
  section ? run(:INFO, section) : run(:INFO)
end