• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/data/localstorage/storage/cachestorage.php
  • Класс: BitrixMainDataLocalStorageStorageCacheStorage
  • Вызов: CacheStorage::write
public function write(string $key, $value, int $ttl)
{
	$filename = '/' . Cache::getPath($key);
	$this->cacheEngine->write($value, $this->baseDir, self::CACHE_DIR, $filename, $ttl);
}