loadFromEnv(); $redis = ['pub_sub_enabled' => $redisServers !== null && EnvVars::REDIS_PUB_SUB_ENABLED->loadFromEnv(false)]; $cacheRedisBlock = $redisServers === null ? [] : [ 'redis' => [ 'servers' => $redisServers, 'sentinel_service' => EnvVars::REDIS_SENTINEL_SERVICE->loadFromEnv(), ], ]; return [ 'cache' => [ 'namespace' => 'Shlink', ...$cacheRedisBlock, ], 'redis' => $redis, ]; })();