CacheTool\Command\ApcuKeyDeleteCommand::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $this->ensureExtensionLoaded('apcu');
        $key = $input->getArgument('key');
        $success = $this->getCacheTool()->apcu_delete($key);
        if ($output->isVerbose()) {
            if ($success) {
                $output->writeln("<comment>APCu key <info>{$key}</info> was deleted</comment>");
            } else {
                $output->writeln("<comment>APCu key <info>{$key}</info> could not be deleted.</comment>");
            }
        }
        return $success ? 0 : 1;
    }
ApcuKeyDeleteCommand