queue.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
  8. // +----------------------------------------------------------------------
  9. // | Author: yunwuxin <448901948@qq.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. 'default' => 'redis',
  13. 'connections' => [
  14. 'sync' => [
  15. 'driver' => 'sync',
  16. ],
  17. 'database' => [
  18. 'driver' => 'database',
  19. 'queue' => 'default',
  20. 'table' => 'jobs',
  21. ],
  22. 'redis' => [
  23. 'driver' => 'redis',
  24. 'queue' => 'default',
  25. 'host' => '127.0.0.1',
  26. 'port' => 6379,
  27. 'password' => '',
  28. 'select' => 0,
  29. 'timeout' => 0,
  30. 'persistent' => false,
  31. ],
  32. ],
  33. 'failed' => [
  34. 'type' => 'none',
  35. 'table' => 'failed_jobs',
  36. ],
  37. ];