• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/system_information.php
  • Класс: CSecuritySystemInformation
  • Вызов: CSecuritySystemInformation::getMemCacheInfoFromCluster
static function getMemCacheInfoFromCluster()
{
	$result = array();
	if(CModule::IncludeModule("cluster"))
	{
		$clusterMemcaches = CClusterMemcache::GetList();
		while($clusterMemcacheServer = $clusterMemcaches->Fetch())
		{
//				if($clusterMemcacheServer["STATUS"] == "ONLINE"){
			$result[] = array(
				"host" => $clusterMemcacheServer["HOST"],
				"port" => $clusterMemcacheServer["PORT"],
			);
//				}
		}
	}
	return $result;
}