• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/data/cacheengine.php
  • Класс: BitrixMainDataCacheEngine
  • Вызов: CacheEngine::unlock
protected function unlock(string $key = '', int $ttl = 0) : void
{
	if ($key != '')
	{
		$key .= '~';

		if ($ttl > 0)
		{
			$this->set($key, $ttl, 1);
		}
		else
		{
			$this->del($key);
		}

		unset(self::$locks[$key]);
	}
}