mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
fix check redis version
This commit is contained in:
@@ -665,8 +665,7 @@ class Install
|
||||
|
||||
public function getRedisVersionInfo(): array
|
||||
{
|
||||
global $Cache;
|
||||
$redis = $Cache->getRedis();
|
||||
$redis = NexusDB::redis();
|
||||
$result = $redis->info();
|
||||
$version = $result['redis_version'];
|
||||
$match = version_compare($version, '2.0.0', '>=');
|
||||
|
||||
Reference in New Issue
Block a user