flushDb method

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

Flushes the currently selected database. Completes with no value, if the command was successful.

Implementation

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