| 1813 | } |
| 1814 | |
| 1815 | void FileContents::cacheRanges(std::vector<ReadRange> ranges) { |
| 1816 | std::lock_guard<std::mutex> lock(readCacheMutex); |
| 1817 | if (!readCache) { |
| 1818 | readCache = std::make_shared<ReadRangeCache>(stream.get(), cacheOptions, pool, readerMetrics); |
| 1819 | } |
| 1820 | readCache->cache(std::move(ranges)); |
| 1821 | } |
| 1822 | |
| 1823 | void FileContents::evictCache(uint64_t boundary) { |
| 1824 | std::lock_guard<std::mutex> lock(readCacheMutex); |
no test coverage detected