8 #ifndef _bes_h4m_cache_h
9 #define _bes_h4m_cache_h
35 bool is_valid(
const string & cache_file_name,
const int expected_file_size);
37 bool get_data_from_cache(
const string &cache_file_name,
const int expected_file_size,
int &fd);
38 bool write_cached_data(
const string &cache_file_name,
const int expected_file_size,
const std::vector<double> &val);
bool get_data_from_cache(const string &cache_file_name, const int expected_file_size, int &fd)
bool is_valid(const string &cache_file_name, const int expected_file_size)
static string getCachePrefixFromConfig()
static const string SIZE_KEY
Implementation of a caching mechanism for compressed data.
static unsigned long getCacheSizeFromConfig()
static void delete_instance()
bool write_cached_data(const string &cache_file_name, const int expected_file_size, const std::vector< double > &val)
static BESH4Cache * get_instance()
Get the default instance of the BESH4Cache object.
static const string PREFIX_KEY
static const string PATH_KEY
static string getCacheDirFromConfig()