protected function execute(InputInterface $input, OutputInterface $output) { $this->ensureExtensionLoaded('apc'); $key = $input->getArgument('key'); $value = $this->getCacheTool()->apc_exists($key); if ($value) { $output->writeln("<comment>APC key=<info>{$key}</info> exists</comment>"); } else { $output->writeln("<comment>APC key=<info>{$key}</info> does not exist.</comment>"); return 1; } }