32 #ifndef MODULES_GATEWAY_MODULE_GATEWAYCACHE_H_ 33 #define MODULES_GATEWAY_MODULE_GATEWAYCACHE_H_ 35 #include "BESFileLockingCache.h" 60 static bool d_enabled;
62 static void delete_instance() {
delete d_instance; d_instance = 0; }
67 static string getCacheDirFromConfig();
68 static string getCachePrefixFromConfig();
69 static unsigned long getCacheSizeFromConfig();
72 GatewayCache(
const string &cache_dir,
const string &prefix,
unsigned long long size);
75 static const string DIR_KEY;
76 static const string PREFIX_KEY;
77 static const string SIZE_KEY;
A cache for data files accessed using the Gateway.
Implementation of a caching mechanism for compressed data.
static GatewayCache * get_instance()