feat: config

This commit is contained in:
2024-10-26 16:26:10 +08:00
parent 5063f2f002
commit d15c03c04e
5 changed files with 90 additions and 0 deletions

View File

@@ -26,4 +26,32 @@ return [
'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
],
],
'system' => [
'host' => env('REDIS_HOST', 'localhost'),
'auth' => env('REDIS_AUTH', null),
'port' => (int) env('REDIS_PORT', 6379),
'db' => (int) env('SYSTEM_REDIS_DB', 1),
'pool' => [
'min_connections' => 1,
'max_connections' => 10,
'connect_timeout' => 10.0,
'wait_timeout' => 3.0,
'heartbeat' => -1,
'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
],
],
'lock' => [
'host' => env('REDIS_HOST', 'localhost'),
'auth' => env('REDIS_AUTH', null),
'port' => (int) env('REDIS_PORT', 6379),
'db' => (int) env('LOCK_REDIS_DB', 2),
'pool' => [
'min_connections' => 1,
'max_connections' => 10,
'connect_timeout' => 10.0,
'wait_timeout' => 3.0,
'heartbeat' => -1,
'max_idle_time' => (float) env('REDIS_MAX_IDLE_TIME', 60),
],
],
];