Update: 2026-07-22 00:46:37
This commit is contained in:
@@ -101,10 +101,11 @@ function getRedis(): ?RedisClient {
|
||||
}
|
||||
|
||||
try {
|
||||
$redisHost = getenv('REDIS_HOST') ?: ($_ENV['REDIS_HOST'] ?? (file_exists('/.dockerenv') ? 'redis' : '127.0.0.1'));
|
||||
$client = new RedisClient([
|
||||
'scheme' => 'tcp',
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'host' => $redisHost,
|
||||
'port' => (int)(getenv('REDIS_PORT') ?: 6379),
|
||||
'password' => $redisPass,
|
||||
'read_write_timeout' => 0,
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user