| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 36 | { |
||
| 37 | $this->ensureExtensionLoaded('apcu'); |
||
| 38 | |||
| 39 | $key = $input->getArgument('key'); |
||
| 40 | $value = $this->getCacheTool()->apcu_exists($key); |
||
| 41 | |||
| 42 | if ($value) { |
||
| 43 | $output->writeln("<comment>APCu key=<info>{$key}</info> exists</comment>"); |
||
| 44 | } else { |
||
| 45 | $output->writeln("<comment>APCu key=<info>{$key}</info> does not exist.</comment>"); |
||
| 46 | return 1; |
||
| 47 | } |
||
| 48 | } |
||
| 49 | } |
||
| 50 |