2025-07-04 13:45:50 +08:00
|
|
|
<?php
|
|
|
|
|
return [
|
|
|
|
|
'consumer' => [
|
|
|
|
|
'handler' => Webman\RedisQueue\Process\Consumer::class,
|
|
|
|
|
'count' => getenv('REDIS_QUEUE_PROCESS_COUNT'), // 可以设置多进程同时消费
|
|
|
|
|
'constructor' => [
|
|
|
|
|
// 消费者类目录
|
2025-07-23 18:41:47 +08:00
|
|
|
'consumer_dir' => app_path() . '/queue/redis',
|
2025-07-04 13:45:50 +08:00
|
|
|
'consumer_dir' => app_path() . getenv('REDIS_QUEUE_CONSUMER_DIR')
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
];
|