postComment = $postComment; } /** * Execute the console command. * * @return mixed */ public function handle() { $this->line("开始删除内容新回复缓存"); $max = $this->postComment->max('id'); $bar = $this->output->createProgressBar($max); for($i=1;$i<=$max;$i++){ Redis::DEL('post_new_reply_'.$i); $bar->advance(); usleep(10000); } $bar->finish(); $this->line("\n删除内容新回复缓存结束"); } }