• Модуль: biconnector
  • Путь к файлу: ~/bitrix/modules/biconnector/lib/memorycache.php
  • Класс: BitrixBIConnectorMemoryCache
  • Вызов: MemoryCache::set
static function set($entityTypeId, $entityId, $value)
{
	static::init();

	if (static::$memoryLimit && static::$memoryLimit < memory_get_usage())
	{
		self::freeMemory();
		return;
	}

	if (!isset(static::$cache[$entityTypeId]))
	{
		static::$cache[$entityTypeId] = [];
	}

	static::$cache[$entityTypeId][$entityId] = $value;
}