connect abstract method
Connects to the Valkey server.
If host, port, username, or password are provided,
they will override the default values set in the constructor.
Throws a ValkeyConnectionException if the socket connection fails (e.g., connection refused) or if authentication fails (e.g., wrong password).
Implementation
Future<void> connect({
String? host,
int? port,
String? username,
String? password,
});