ValkeyPool constructor
ValkeyPool({
- required ValkeyConnectionSettings connectionSettings,
- int maxConnections = 10,
Creates a new connection pool.
connectionSettings: The settings used to create new connections.
maxConnections: The maximum number of concurrent connections allowed. Default to 10 max connections.
Implementation
ValkeyPool({
required ValkeyConnectionSettings connectionSettings,
int maxConnections = 10,
}) : _connectionSettings = connectionSettings,
_maxConnections = maxConnections {
if (_maxConnections <= 0) {
throw ArgumentError('maxConnections must be a positive integer.');
}
}