• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/stack_cache_entry.php
  • Класс: CStackCacheEntry
  • Вызов: CStackCacheEntry::Set
function Set($id, $value)
{
	if(array_key_exists($id, $this->values))
	{
		unset($this->values[$id]);
		$this->values = $this->values + array($id => $value);
	}
	else
	{
		$this->values = $this->values + array($id => $value);
		while(count($this->values) > $this->len)
			array_shift($this->values);
	}

	$this->cleanSet = false;
}