6 #ifndef TURI_FILEIO_FILE_DOWNLOAD_CACHE_HPP 7 #define TURI_FILEIO_FILE_DOWNLOAD_CACHE_HPP 9 #include <unordered_map> 11 #include <core/parallel/mutex.hpp> 50 std::string
get_file(
const std::string& url);
72 struct file_metadata {
74 std::string last_modified;
78 std::unordered_map<std::string, file_metadata> url_to_file;
static file_download_cache & get_instance()
void release_cache(const std::string &url)
~file_download_cache()
deletes all downloaded temporary files
std::string get_file(const std::string &url)