class Redis

def flushall(options = nil)

Returns:
  • (String) - `OK`

Parameters:
  • options (Hash) --
def flushall(options = nil)
  synchronize do |client|
    if options && options[:async]
      client.call(%i[flushall async])
    else
      client.call([:flushall])
    end
  end
end