Skip to content

Commit 69df2ad

Browse files
authored
Support predis v1.1.1
fix: `AUTH failed: ERR Client sent AUTH, but no password is set [tcp://127.0.0.1:6379]` According to predix release log: https://github.com/nrk/predis/releases/tag/v1.1.1
1 parent 038ae10 commit 69df2ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/database.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@
111111

112112
'default' => [
113113
'host' => env('REDIS_HOST', '127.0.0.1'),
114-
'password' => env('REDIS_PASSWORD', null),
115114
'port' => env('REDIS_PORT', 6379),
116115
'database' => 0,
116+
'parameters' => [
117+
'password' => env('REDIS_PASSWORD', '')
118+
]
117119
],
118120

119121
],

0 commit comments

Comments
 (0)