setName('memcache:distributed:get') ->setDescription('Get a value from the distributed memcache') ->addArgument('key', InputArgument::REQUIRED, 'The key to retrieve'); parent::configure(); } protected function execute(InputInterface $input, OutputInterface $output): int { $cache = $this->cacheFactory->createDistributed(); $key = $input->getArgument('key'); $value = $cache->get($key); $this->writeMixedInOutputFormat($input, $output, $value); return 0; } }