redis.php 356 B

123456789101112
  1. <?php
  2. return [
  3. 'default' => [
  4. 'host' => 'redis://127.0.0.1:6379',
  5. 'options' => [
  6. 'auth' => '123456', // 密码,可选参数
  7. 'db' => 5, // 数据库
  8. 'max_attempts' => 2, // 消费失败后,重试次数
  9. 'retry_seconds' => 5, // 重试间隔,单位秒
  10. ]
  11. ],
  12. ];