setName('test') ->setDescription('the test command'); } /** * Execute the console command. * * @param Input $input * @param Output $output * @return void */ protected function execute(Input $input, Output $output) { $cacheCode = Cache::store('redis')->keys('api_log'); dd($cacheCode); $param['nation'] = '81'; $param['phone'] = '8057252138'; $mobile = $param['nation'] . ltrim($param['phone'], '0'); $smsKey = 'DB:USER:UNLOGIN:SMS_CODE:' . $mobile; $cacheCode = Cache::store('redis')->get($smsKey); dd($cacheCode); } }