queue.php 1.3 KB

1234567891011121314151617181920212223
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. use think\Config;
  12. return [
  13. 'connector' => 'Redis', // Redis 驱动
  14. 'expire' => null, // 任务的过期时间,默认为60秒; 若要禁用,则设置为 null
  15. 'default' => 'default', // 默认的队列名称
  16. 'host' => Config::get('cache')['redis']['host'], // redis 主机ip
  17. 'port' => Config::get('cache')['redis']['port'], // redis 端口
  18. 'password' => Config::get('cache')['redis']['password'], // redis 密码
  19. 'select' => 0, // 使用哪一个 db,默认为 db0
  20. 'timeout' => 0, // redis连接的超时时间
  21. 'persistent' => false, // 是否是长连接
  22. ];