first
This commit is contained in:
25
server-api/config/plugin/webman/redis-queue/redis.php
Normal file
25
server-api/config/plugin/webman/redis-queue/redis.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
return [
|
||||
'default' => [
|
||||
'host' => sprintf(
|
||||
'redis://%s:%s',
|
||||
$_ENV['REDIS_HOST'] ?? '127.0.0.1',
|
||||
$_ENV['REDIS_PORT'] ?? '6379'
|
||||
),
|
||||
'options' => [
|
||||
'auth' => $_ENV['REDIS_PASSWORD'] ?? null,
|
||||
'db' => (int)($_ENV['REDIS_DB'] ?? 0),
|
||||
'prefix' => $_ENV['REDIS_PREFIX'] ?? '',
|
||||
'max_attempts' => 5,
|
||||
'retry_seconds' => 5,
|
||||
],
|
||||
// Connection pool, supports only Swoole or Swow drivers.
|
||||
'pool' => [
|
||||
'max_connections' => 5,
|
||||
'min_connections' => 1,
|
||||
'wait_timeout' => 3,
|
||||
'idle_timeout' => 60,
|
||||
'heartbeat_interval' => 50,
|
||||
]
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user