flushAll method

Future<void> flushAll({
  1. bool doAsync = false,
})

Flushes all databases. Completes with no value, if the command was successful.

Implementation

Future<void> flushAll({bool doAsync = false}) async {
  _getSimpleString(await _execCmd(doAsync ? ['FLUSHALL', 'ASYNC'] : ['FLUSHDB'])) == 'OK';
  return null;
}