Files
2025-07-04 13:45:50 +08:00

23 lines
862 B
PHP

<?php
return [
'default' => [
// 'host' => 'redis://127.0.0.1:6379',
'host' => getenv('REDIS_QUEUE_HOST'),
'options' => [
'auth' => getenv('REDIS_QUEUE_AUTH'), // 密码,字符串类型,可选参数
'db' => getenv('REDIS_QUEUE_DB'), // 数据库
'prefix' => getenv('REDIS_QUEUE_PREFIX'), // key 前缀
'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,
]
],
];