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