Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
Cache.h File Reference
#include <API/Base.h>
#include "Logger/Logger.h"
#include <unordered_map>
#include <unordered_set>
#include <filesystem>
#include <iostream>
#include <fstream>
+ Include dependency graph for Cache.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Cache
 

Functions

std::string Cache::calculateSHA256 (const std::filesystem::path &filename)
 
void Cache::saveToFile (const std::filesystem::path &filename, const std::string &content)
 
std::string Cache::readFromFile (const std::filesystem::path &filename)
 
template<typename T >
void Cache::serializeMap (const std::unordered_map< std::string, T > &data, const std::filesystem::path &filename)
 
template<typename T >
std::unordered_map< std::string, T > Cache::deserializeMap (const std::filesystem::path &filename)
 
void Cache::saveToFilePlain (const std::filesystem::path &filename, const std::unordered_map< std::string, intptr_t > &map)
 
std::unordered_set< std::string > Cache::readFileIntoSet (const std::filesystem::path &filename)
 

Variables

static const std::unordered_set< std::string > Cache::default_filters