推送队列

This commit is contained in:
2026-03-11 16:01:18 +08:00
parent 261fa05517
commit ff3201375d
13 changed files with 188 additions and 887 deletions
+8 -9
View File
@@ -1,12 +1,11 @@
<?php
return [
// 'consumer' => [
// 'handler' => Webman\RedisQueue\Process\Consumer::class,
// 'count' => getenv('REDIS_QUEUE_PROCESS_COUNT'), // 可以设置多进程同时消费
// 'constructor' => [
// // 消费者类目录
// 'consumer_dir' => app_path() . '/queue/redis',
// 'consumer_dir' => app_path() . getenv('REDIS_QUEUE_CONSUMER_DIR')
// ]
// ]
'consumer' => [
'handler' => Webman\RedisQueue\Process\Consumer::class,
'count' => 1, // 消费者进程数量
'constructor' => [
// 消费者类目录
'consumer_dir' => app_path() . '/queue/redis',
]
]
];