• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/V2/Entity/Command/Command.php
  • Класс: BitrixImV2EntityCommandCommand
  • Вызов: Command::getSavedCache
protected function getSavedCache(int $id): Cache
{
	$cache = Application::getInstance()->getCache();

	$cacheDir = $this->getCacheDir($id);
	$cache->initCache(self::CACHE_TTL, $this->getCacheKey($id), $cacheDir);

	return $cache;
}