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

	return null;
}