ContentTest.php 624 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Console\Commands\ContentManage;
  3. use Illuminate\Console\Command;
  4. use Illuminate\Support\Facades\Redis;
  5. class ContentTest extends Command
  6. {
  7. /**
  8. * The name and signature of the console command.
  9. *
  10. * @var string
  11. */
  12. protected $signature = 'app:contenttest';
  13. /**
  14. * The console command description.
  15. *
  16. * @var string
  17. */
  18. protected $description = 'Command description';
  19. /**
  20. * Execute the console command.
  21. */
  22. public function handle(): void
  23. {
  24. Redis::set('test-aa', 1132412);
  25. $this->info(Redis::get('test-aa'));
  26. }
  27. }