<?php

namespace App\Console\Commands;

use App\Models\EList;
use Helper\Mail\Mail;
use Illuminate\Console\Command;
use function Co\run;

class Demo extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'demo';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '测试命令';

    /**
     * Execute the console command.
     *
     * @return int
     */
    public function handle()
    {

//        run(function (){
//            go(function (){
//
//
//                $redis = swoole_redis();
//////                $a = $redis->eval(...swoole_redis_add('asdad:1',1,600));
//////                var_dump($a);
//                for ($i=1;$i<=345;$i++){
//                    $redis->rPush('syncMailBody',$i);
//                }
//
////                $redis->rPush('syncMailBody',301);
////                $redis->rPush('syncMailBody',302);
////                $redis->rPush('syncMailBody',303);
////                $redis->rPush('syncMailBody',304);
////                $redis->rPush('syncMailBody',305);
////                $redis->rPush('syncMailBody',306);
////                $redis->rPush('syncMailBody',307);
////                $redis->rPush('syncMailBody',308);
////                $redis->rPush('syncMailBody',309);
//
//                $redis->set('syncmailbodystop',1);
//
//            });
//
//        });
//




        return Command::SUCCESS;
    }



}