class Redis

def slowlog(subcommand, length = nil)

Returns:
  • (Array, Integer, String) - depends on subcommand

Parameters:
  • length (Integer) -- maximum number of entries to return
  • subcommand (String) -- e.g. `get`, `len`, `reset`
def slowlog(subcommand, length = nil)
  synchronize do |client|
    args = [:slowlog, subcommand]
    args << length if length
    client.call args
  end
end