Neos\Cache\Backend\RedisBackend::getRedisClient PHP Метод

getRedisClient() приватный Метод

private getRedisClient ( ) : Redis
Результат Redis
    private function getRedisClient()
    {
        if (strpos($this->hostname, '/') !== false) {
            $this->port = null;
        }
        $redis = new \Redis();
        if (!$redis->connect($this->hostname, $this->port)) {
            throw new CacheException('Could not connect to Redis.', 1391972021);
        }
        $redis->select($this->database);
        return $redis;
    }