private function getCacheItemPool(InputInterface $input, ClientInterface $client): CacheItemPoolInterface
    {
        $factoryClass = $input->getOption('factory-class');
        $cacheItemPoolFactory = new $factoryClass();
        if (!$cacheItemPoolFactory instanceof CacheItemPoolFactoryInterface) {
            throw new \InvalidArgumentException(\sprintf(
                'Cache item pool factory must implement "%s".',
                CacheItemPoolFactoryInterface::class
            ));
        }

        return $cacheItemPoolFactory->getCacheItemPool(
            $client->getApi(),
            $client->getSpaceId(),
            $client->getEnvironmentId()
        );
    }
private function getCacheItemPool(InputInterface $input, ClientInterface $client): CacheItemPoolInterface
    {
        $factoryClass = $input->getOption('factory-class');
        $cacheItemPoolFactory = new $factoryClass();
        if (!$cacheItemPoolFactory instanceof CacheItemPoolFactoryInterface) {
            throw new \InvalidArgumentException(\sprintf(
                'Cache item pool factory must implement "%s".',
                CacheItemPoolFactoryInterface::class
            ));
        }

        return $cacheItemPoolFactory->getCacheItemPool(
            $client->getApi(),
            $client->getSpaceId(),
            $client->getEnvironmentId()
        );
    }
@param InputInterface  $input
@param ClientInterface $client

@return CacheItemPoolInterface