cache rss + redis require 2.0

This commit is contained in:
xiaomlove
2022-07-18 15:13:03 +08:00
parent ffd25a1dae
commit 1759f4abfc
10 changed files with 67 additions and 24 deletions
+10
View File
@@ -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;