RedisSocketOptions constructor
RedisSocketOptions({
- String host = 'localhost',
- int port = 6379,
- String username = '',
- String? password,
- int db = 0,
- Duration timeout = const Duration(seconds: 30),
- Duration retryInterval = const Duration(seconds: 30),
- int retryAttempts = 3,
- bool tlsSecure = false,
- List<
int> ? caCertBytes, - List<
int> ? certBytes, - List<
int> ? keyBytes,
Implementation
factory RedisSocketOptions({
String host = 'localhost',
int port = 6379,
String username = '',
String? password,
int db = 0,
Duration timeout = const Duration(seconds: 30),
Duration retryInterval = const Duration(seconds: 30),
int retryAttempts = 3,
bool tlsSecure = false,
List<int>? caCertBytes,
List<int>? certBytes,
List<int>? keyBytes,
}) {
return RedisSocketOptions._(
host: host,
port: port,
timeout: timeout,
username: username,
password: password,
db: db,
retryInterval: retryInterval,
retryAttempts: retryAttempts,
tlsSecure: tlsSecure,
caCertBytes: caCertBytes,
certBytes: certBytes,
keyBytes: keyBytes,
);
}