public function getStatus(): Result
    {
        $result = new Result();
        try {
            $this->verifyRedisVersionIsSupported();
        } catch (CacheException $exception) {
            $result->addError(new Error($exception->getMessage(), $exception->getCode(), [], 'Redis Version'));
            return $result;
        }
        $serverInfo = (array)$this->redis->info('SERVER');
        if (isset($serverInfo['redis_version'])) {
            $result->addNotice(new Notice((string)$serverInfo['redis_version'], null, [], 'Redis version'));
        }
        if (isset($serverInfo['tcp_port'])) {
            $result->addNotice(new Notice((string)$serverInfo['tcp_port'], null, [], 'TCP Port'));
        }
        if (isset($serverInfo['uptime_in_seconds'])) {
            $result->addNotice(new Notice((string)$serverInfo['uptime_in_seconds'], null, [], 'Uptime (seconds)'));
        }
        return $result;
    }
public function getStatus(): Result
    {
        $result = new Result();
        try {
            $this->verifyRedisVersionIsSupported();
        } catch (CacheException $exception) {
            $result->addError(new Error($exception->getMessage(), $exception->getCode(), [], 'Redis Version'));
            return $result;
        }
        $serverInfo = (array)$this->redis->info('SERVER');
        if (isset($serverInfo['redis_version'])) {
            $result->addNotice(new Notice((string)$serverInfo['redis_version'], null, [], 'Redis version'));
        }
        if (isset($serverInfo['tcp_port'])) {
            $result->addNotice(new Notice((string)$serverInfo['tcp_port'], null, [], 'TCP Port'));
        }
        if (isset($serverInfo['uptime_in_seconds'])) {
            $result->addNotice(new Notice((string)$serverInfo['uptime_in_seconds'], null, [], 'Uptime (seconds)'));
        }
        return $result;
    }
public function getStatus ( ) : Result { $ result = new Result ( ) ; try { $ this -> verifyRedisVersionIsSupported ( ) ; } catch ( CacheException $ exception ) { $ result -> addError ( new Error ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) , [ ] , 'Redis Version' ) ) ; return $ result ; } $ serverInfo = ( array ) $ this -> redis -> info ( 'SERVER' ) ; if ( isset ( $ serverInfo [ 'redis_version' ] ) ) { $ result -> addNotice ( new Notice ( ( string ) $ serverInfo [ 'redis_version' ] , null , [ ] , 'Redis version' ) ) ; } if ( isset ( $ serverInfo [ 'tcp_port' ] ) ) { $ result -> addNotice ( new Notice ( ( string ) $ serverInfo [ 'tcp_port' ] , null , [ ] , 'TCP Port' ) ) ; } if ( isset ( $ serverInfo [ 'uptime_in_seconds' ] ) ) { $ result -> addNotice ( new Notice ( ( string ) $ serverInfo [ 'uptime_in_seconds' ] , null , [ ] , 'Uptime (seconds)' ) ) ; } return $ result ; }
Validates that the configured redis backend is accessible and returns some details about its configuration if that's the case

@return Result
@api
Validates that the configured redis backend is accessible and returns some details about its configuration if that s the case