module Redis::Commands::Server

def flushdb(options = nil)

Returns:
  • (String) - `OK`

Parameters:
  • options (Hash) --
def flushdb(options = nil)
  if options && options[:async]
    send_command(%i[flushdb async])
  else
    send_command([:flushdb])
  end
end