RedisSocketOptions constructor

RedisSocketOptions({
  1. String host = 'localhost',
  2. int port = 6379,
  3. String username = '',
  4. String? password,
  5. int db = 0,
  6. Duration timeout = const Duration(seconds: 30),
  7. Duration retryInterval = const Duration(seconds: 30),
  8. int retryAttempts = 3,
  9. bool tlsSecure = false,
  10. List<int>? caCertBytes,
  11. List<int>? certBytes,
  12. 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,
  );
}