22 lines
684 B
PHP
22 lines
684 B
PHP
|
|
<?php
|
||
|
|
return [
|
||
|
|
'default' => [
|
||
|
|
'host' => getenv('REDIS_QUEUE_HOST'),
|
||
|
|
'options' => [
|
||
|
|
'auth' => getenv('REDIS_QUEUE_AUTH'),
|
||
|
|
'db' => getenv('REDIS_QUEUE_DB'),
|
||
|
|
'prefix' => getenv('REDIS_QUEUE_PREFIX'),
|
||
|
|
'max_attempts' => getenv('REDIS_QUEUE_MAX_ATTEMPTS'),
|
||
|
|
'retry_seconds' => getenv('REDIS_QUEUE_RETRY_SECONDS'),
|
||
|
|
],
|
||
|
|
// Connection pool, supports only Swoole or Swow drivers.
|
||
|
|
'pool' => [
|
||
|
|
'max_connections' => 5,
|
||
|
|
'min_connections' => 1,
|
||
|
|
'wait_timeout' => 3,
|
||
|
|
'idle_timeout' => 60,
|
||
|
|
'heartbeat_interval' => 50,
|
||
|
|
]
|
||
|
|
],
|
||
|
|
];
|