disconnect method

Future<void> disconnect()

Disconnect redis connection

Implementation

Future<void> disconnect() async {
  _shouldReconnect = false;
  _shouldThrowErrorOnConnection = false;
  await _redisSocket?.close();
}