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; }