Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
Cache Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ calculateSHA256()

std::string Cache::calculateSHA256 ( const std::filesystem::path & filename)

Definition at line 13 of file Cache.cpp.

◆ deserializeMap()

template<typename T >
std::unordered_map< std::string, T > Cache::deserializeMap ( const std::filesystem::path & filename)

Definition at line 41 of file Cache.h.

◆ readFileIntoSet()

std::unordered_set< std::string > Cache::readFileIntoSet ( const std::filesystem::path & filename)

Definition at line 113 of file Cache.cpp.

◆ readFromFile()

std::string Cache::readFromFile ( const std::filesystem::path & filename)

Definition at line 75 of file Cache.cpp.

◆ saveToFile()

void Cache::saveToFile ( const std::filesystem::path & filename,
const std::string & content )

Definition at line 63 of file Cache.cpp.

◆ saveToFilePlain()

void Cache::saveToFilePlain ( const std::filesystem::path & filename,
const std::unordered_map< std::string, intptr_t > & map )

Definition at line 93 of file Cache.cpp.

◆ serializeMap()

template<typename T >
void Cache::serializeMap ( const std::unordered_map< std::string, T > & data,
const std::filesystem::path & filename )

Definition at line 20 of file Cache.h.

Variable Documentation

◆ default_filters

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

Definition at line 86 of file Cache.h.