protected function execute(InputInterface $input, OutputInterface $output)
{
$dialog = $this->getHelperSet()->get('dialog');
if ($input->getOption('force') || $dialog->askConfirmation($output, 'Continuing will clear all php-resque data from Redis. Are you sure? ', false)) {
$output->write('Clearing Redis php-resque data... ');
$redis = Resque\Redis::instance();
$keys = $redis->keys('*');
foreach ($keys as $key) {
$redis->del($key);
}
$output->writeln('<pop>Done.</pop>');
}
}