Skip to content

Commit 7974105

Browse files
committed
Allow auth
Signed-off-by: RJ Garcia <[email protected]>
1 parent 3dfdebb commit 7974105

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/RedisConnection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ function(Redis $conn) use ($query, $options) {
4444
if ($db !== null) {
4545
$conn->select($db);
4646
}
47+
$auth = $parsedUrl['pass'] ?? null;
48+
if ($auth) {
49+
$conn->auth($auth);
50+
}
4751
}
4852
);
4953
}

0 commit comments

Comments
 (0)