<?php namespace App\Console\Commands\ContentManage; use Illuminate\Console\Command; use Illuminate\Support\Facades\Redis; class ContentTest extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'app:contenttest'; /** * The console command description. * * @var string */ protected $description = 'Command description'; /** * Execute the console command. */ public function handle(): void { Redis::set('test-aa', 1132412); $this->info(Redis::get('test-aa')); } }