基础扩展
This commit is contained in:
13
config/plugin/webman/redis-queue/redis.php
Normal file
13
config/plugin/webman/redis-queue/redis.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
return [
|
||||
'default' => [
|
||||
'host' => 'redis://127.0.0.1:6379',
|
||||
'options' => [
|
||||
'auth' => null, // 密码,字符串类型,可选参数
|
||||
'db' => 0, // 数据库
|
||||
'prefix' => '', // key 前缀
|
||||
'max_attempts' => 5, // 消费失败后,重试次数
|
||||
'retry_seconds' => 5, // 重试间隔,单位秒
|
||||
]
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user