RedisOptions constructor
RedisOptions({
- String keyPrefix = '',
- String host = '127.0.0.1',
- int port = 6379,
- bool secure = false,
- Duration connectTimeout = const Duration(seconds: 10),
- String? username,
- String? password,
- int db = 0,
- Duration retryStrategy()?,
- void onError(
- dynamic
- int maxConnection = 10,
- 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),
});