disconnect method

Future<void> disconnect()

Terminate the connection to the Redis server.

Implementation

Future<void> disconnect() async {
  _logger.info('Disconnecting.');
  await _connection?.close();
  _reset();
  await _untilDisconnected;
  _logger.info('Disconnected.');
}