26 #ifndef _bes_dap_response_cache_h
27 #define _bes_dap_response_cache_h
37 class ConstraintEvaluator;
38 class BaseTypeFactory;
57 bool is_valid(
const std::string &cache_file_name,
const std::string &dataset);
58 void read_data_from_cache(
const string &cache_file_name, libdap::DDS *fdds);
59 libdap::DDS *get_cached_data_ddx(
const std::string &cache_file_name, libdap::BaseTypeFactory *factory,
const std::string &dataset);
64 static void delete_instance();
68 BESDapResponseCache(
const string &cache_dir,
const string &prefix,
unsigned long long size);
83 virtual libdap::DDS *read_dataset(
const std::string &filename,
const std::string &constraint, std::string &cache_token);
88 libdap::ConstraintEvaluator *eval, std::string &cache_token);
98 #endif // _bes_dap_response_cache_h
static unsigned long getCacheSizeFromConfig()
virtual libdap::DDS * cache_dataset(libdap::DDS &dds, const std::string &constraint, BESDapResponseBuilder *rb, libdap::ConstraintEvaluator *eval, std::string &cache_token)
Get the cached DDS object.
static BESDapResponseCache * get_instance()
Get the default instance of the BESDapResponseCache object.
This class is used to cache DAP2 response objects.
Implementation of a caching mechanism for compressed data.
static const string SIZE_KEY
friend class StoredResultTest
static string getCacheDirFromConfig()
static string getCachePrefixFromConfig()
virtual ~BESDapResponseCache()
This class is used to build responses for/by the BES.
static const string PREFIX_KEY
friend class ResponseCacheTest
static const string PATH_KEY