Merge pull request #15336 from epma01/redis-patch
Fix Redis with unix socket #730
This commit is contained in:
commit
9fe4d8e7a1
|
@ -72,8 +72,10 @@ class RedisFactory {
|
||||||
}
|
}
|
||||||
if (isset($config['port'])) {
|
if (isset($config['port'])) {
|
||||||
$port = $config['port'];
|
$port = $config['port'];
|
||||||
} else {
|
} else if ($host[0] !== '/') {
|
||||||
$port = 6379;
|
$port = 6379;
|
||||||
|
} else {
|
||||||
|
$port = null;
|
||||||
}
|
}
|
||||||
if (isset($config['timeout'])) {
|
if (isset($config['timeout'])) {
|
||||||
$timeout = $config['timeout'];
|
$timeout = $config['timeout'];
|
||||||
|
|
Loading…
Reference in New Issue