设置缓存

设置缓存 10 秒

  1. Router::group([
  2. 'cache' => 10
  3. ], function () {
  4. Router::get('/mix/ws', HttpController::class . '@ws');
  5. Router::get('/mix/http', HttpController::class . '@http');
  6. });