14 lines
464 B
PHP
Raw Permalink Normal View History

2024-05-10 11:31:45 +08:00
<?php
return [
'default' => [
2024-05-10 14:21:10 +08:00
'host' => 'redis://'.getenv('REDIS_HOST').':6379',
2024-05-10 11:31:45 +08:00
'options' => [
2024-05-10 14:21:10 +08:00
'auth' => getenv('REDIS_PASSWORD'), // 密码,字符串类型,可选参数
2024-05-10 11:31:45 +08:00
'db' => 0, // 数据库
2024-05-10 14:21:10 +08:00
'prefix' => 'queue:', // key 前缀
'max_attempts' => 3, // 消费失败后,重试次数
2024-05-10 11:31:45 +08:00
'retry_seconds' => 5, // 重试间隔,单位秒
]
],
];