mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-20 09:30:49 +08:00
cache rss + redis require 2.0
This commit is contained in:
@@ -663,6 +663,16 @@ class Install
|
||||
return compact('version', 'match');
|
||||
}
|
||||
|
||||
public function getRedisVersionInfo(): array
|
||||
{
|
||||
global $Cache;
|
||||
$redis = $Cache->getRedis();
|
||||
$result = $redis->info();
|
||||
$version = $result['redis_version'];
|
||||
$match = version_compare($version, '2.0.0', '>=');
|
||||
return compact('version', 'match');
|
||||
}
|
||||
|
||||
public function checkLock()
|
||||
{
|
||||
$fullFilename = ROOT_PATH . $this->lockFile;
|
||||
|
||||
Reference in New Issue
Block a user