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('apc');
$info = $this->getCacheTool()->apc_cache_info('system');
$this->normalize($info);
if (!$info) {
throw new \RuntimeException("Could not fetch info from APC");
}
$header = array('Hits', 'Accessed', 'Deleted', 'Memory size', 'Filename');
$table = new Table($output);
$table->setHeaders($header)->setRows($this->processFilelist($info['cache_list']));
$table->render($output);
}