diff --git a/src/Factory/PredisParametersFactory.php b/src/Factory/PredisParametersFactory.php index 8724b664..bf5a4f84 100644 --- a/src/Factory/PredisParametersFactory.php +++ b/src/Factory/PredisParametersFactory.php @@ -55,6 +55,10 @@ private static function parseDsn(RedisDsn $dsn): array } } + if ($dsn->getUsername() !== null) { + $options['username'] = $dsn->getUsername(); + } + if ($dsn->getDatabase() !== null) { $options['database'] = $dsn->getDatabase(); }