Files
usedcar/config/plugin/webman/redis-queue/redis.php
T

22 lines
684 B
PHP
Raw Normal View History

2025-05-14 13:19:23 +08:00
<?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,
]
],
];