hahn-admin/config/plugin/webman/redis-queue/redis.php

14 lines
501 B
PHP
Raw Normal View History

2025-07-03 11:08:32 +08:00
<?php
return [
'default' => [
'host' => 'redis://'.getenv('REDIS_HOST').':'.getenv('REDIS_PORT').'',
'options' => [
'auth' => getenv('REDIS_PASSWORD'), // 密码,字符串类型,可选参数
'db' => getenv('REDIS_DATABASE'), // 数据库
'prefix' => '', // key 前缀
'max_attempts' => 5, // 消费失败后,重试次数
'retry_seconds' => 5, // 重试间隔,单位秒
]
],
];