TestCache.php 538 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Console\Test;
  3. use Illuminate\Console\Command;
  4. use Illuminate\Support\Facades\Redis;
  5. class TestCache extends Command
  6. {
  7. /**
  8. * @var string
  9. */
  10. protected $signature = 'test:cache';
  11. /**
  12. * The console command description.
  13. * php artisan Payment:BasePayment --bid='1'
  14. *
  15. * @var string
  16. */
  17. protected $description = '测试缓存';
  18. /**
  19. * handle
  20. */
  21. public function handle()
  22. {
  23. $key = 'FGCOuXrAPi80aWgH';
  24. Redis::set($key, 'test');
  25. }
  26. }