MatthiasMullie\Scrapbook\Adapters\Redis::getVersion PHP 메소드

getVersion() 보호된 메소드

Returns the version of the Redis server we're connecting to.
protected getVersion ( ) : string
리턴 string
    protected function getVersion()
    {
        if ($this->version === null) {
            $info = $this->client->info();
            $this->version = $info['redis_version'];
        }
        return $this->version;
    }