mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
change category basic
This commit is contained in:
@@ -37,7 +37,7 @@ class class_cache_redis {
|
||||
if (!empty($config['port'])) {
|
||||
$params[] = $config['port'];
|
||||
}
|
||||
if (!empty($config['timeout'])) {
|
||||
if (isset($config['timeout']) && is_numeric($config['timeout'])) {
|
||||
$params[] = $config['timeout'];
|
||||
}
|
||||
$connectResult = $redis->connect(...$params);
|
||||
|
||||
Reference in New Issue
Block a user