perf: redis env配置

This commit is contained in:
2025-07-09 16:15:58 +08:00
parent 329b654a92
commit 7e2ee5e0cc
2 changed files with 61 additions and 9 deletions

View File

@@ -29,15 +29,15 @@ return [
// 驱动方式
'type' => 'redis',
// 服务器地址
'host' => '127.0.0.1',
'host' => env('REDIS_HOST', '127.0.0.1'),
// 端口
'port' => 6379,
'port' => env('REDIS_PORT', 6379),
// 密码
'password' => 'orico@f2b211',
'password' => env('REDIS_PASSWORD', 'orico@f2b211'),
// 缓存有效期 0表示永久缓存
'expire' => 0,
// 缓存前缀
'prefix' => 'ow:',
'prefix' => env('REDIS_PREFIX', 'ow:'),
]
],
];