• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/composite/data/memcachedstorage.php
  • Класс: BitrixMainCompositeDataMemcachedStorage
  • Вызов: MemcachedStorage::__construct
public function __construct($cacheKey, array $configuration, array $htmlCacheOptions)
{
	parent::__construct($cacheKey, $configuration, $htmlCacheOptions);
	$this->memcached = MemcachedResponse::getConnection($configuration, $htmlCacheOptions);
	if ($this->memcached !== null)
	{
		$this->memcached->setCompressThreshold(0);
	}
	
	$this->compression = !isset($htmlCacheOptions["MEMCACHE_COMPRESSION"]) || $htmlCacheOptions["MEMCACHE_COMPRESSION"] !== "N";
}