RedisOptions constructor

RedisOptions({
  1. String keyPrefix = '',
  2. String host = '127.0.0.1',
  3. int port = 6379,
  4. bool secure = false,
  5. Duration connectTimeout = const Duration(seconds: 10),
  6. String? username,
  7. String? password,
  8. int db = 0,
  9. Duration retryStrategy(
    1. int
    )?,
  10. void onError(
    1. dynamic
    )?,
  11. int maxConnection = 10,
  12. Duration idleTimeout = const Duration(seconds: 10),
})

Implementation

RedisOptions({
  this.keyPrefix = '',
  this.host = '127.0.0.1',
  this.port = 6379,
  this.secure = false,
  this.connectTimeout = const Duration(seconds: 10),
  this.username,
  this.password,
  this.db = 0,
  this.retryStrategy,
  this.onError,
  this.maxConnection = 10,
  this.idleTimeout = const Duration(seconds: 10),
});