Support connecting to Redis with unix socket

This commit is contained in:
printempw 2018-07-22 12:25:54 +08:00
parent 55c7109b98
commit 63d135071d

View File

@ -109,9 +109,11 @@ return [
'cluster' => false, 'cluster' => false,
'default' => [ 'default' => [
'schema' => menv('REDIS_SCHEMA', 'tcp'),
'host' => menv('REDIS_HOST', 'localhost'), 'host' => menv('REDIS_HOST', 'localhost'),
'password' => menv('REDIS_PASSWORD', null),
'port' => menv('REDIS_PORT', 6379), 'port' => menv('REDIS_PORT', 6379),
'path' => menv('REDIS_SOCKET_PATH'),
'password' => menv('REDIS_PASSWORD', null),
'database' => 0, 'database' => 0,
], ],