src/Bridge/Console/Command/CacheRemoveCommand.php
public function execute(InputInterface $input, OutputInterface $output)
    {
        parent::execute($input, $output);

        $poolName = $input->getArgument('pool_name');
        $pool = $this->registry->getCachePool($poolName);

        $actionName = $input->getArgument('action_name');
        $arguments = $input->getArgument('arguments');

        $id = $this->registry->generateCacheItemKey($actionName, $arguments);

        $output->writeln(sprintf('Removing cache item "%s" from pool "%s"...', $id, $poolName));

        if ($pool->deleteItem($id)) {
            $output->writeln('<info>Cache item has been successfully removed from the pool.</info>');
        } else {
            $output->writeln(sprintf('<error>An error occurred while removing a cache item from pool "%s"</error>', $poolName));
        }
    }
public function execute(InputInterface $input, OutputInterface $output)
    {
        parent::execute($input, $output);

        $poolName = $input->getArgument('pool_name');
        $pool = $this->registry->getCachePool($poolName);

        $actionName = $input->getArgument('action_name');
        $arguments = $input->getArgument('arguments');

        $id = $this->registry->generateCacheItemKey($actionName, $arguments);

        $output->writeln(sprintf('Removing cache item "%s" from pool "%s"...', $id, $poolName));

        if ($pool->deleteItem($id)) {
            $output->writeln('<info>Cache item has been successfully removed from the pool.</info>');
        } else {
            $output->writeln(sprintf('<error>An error occurred while removing a cache item from pool "%s"</error>', $poolName));
        }
    }
{@inheritdoc}