21 #ifndef DISPATCH_BESUNCOMPRESSCACHE_H_ 22 #define DISPATCH_BESUNCOMPRESSCACHE_H_ 24 #include "BESFileLockingCache.h" 29 static void delete_instance()
37 string d_dimCacheFilePrefix;
38 unsigned long d_maxCacheSize;
43 bool is_valid(
const std::string &cache_file_name,
const std::string &dataset_file_name);
45 static string getCacheDirFromConfig();
46 static string getCachePrefixFromConfig();
47 static unsigned long getCacheSizeFromConfig();
51 BESUncompressCache(
const string &data_root_dir,
const string &cache_dir,
const string &prefix,
52 unsigned long long size);
55 static const string DIR_KEY;
56 static const string PREFIX_KEY;
57 static const string SIZE_KEY;
60 const string &prefix,
unsigned long long size);
Implementation of a caching mechanism for compressed data. This cache uses simple advisory locking fo...
virtual string get_cache_file_name(const string &src, bool mangle=true)
Build the name of file that will holds the uncompressed data from 'src' in the cache.
static BESUncompressCache * get_instance()