protected function execute(InputInterface $input, OutputInterface $output)
    {
        $debug = $input->getOption('debug');
        $client = $this->getContainer()->get('beryllium_cache.client');

        if (is_object($client) && method_exists($client, 'getStats')) {
            $text = $this->formatStats($client->getStats(), $debug);
        } else {
            $text = 'Active cache client does not have a stats function.';
        }

        $output->writeln($text);
    }