28#ifndef _bes_http_HTTP_CACHE_H_
29#define _bes_http_HTTP_CACHE_H_ 1
31#include "BESFileLockingCache.h"
33#define HASH_CACHE_FILENAME 1
56 static bool d_enabled;
59 static void delete_instance() {
68 static std::string getCacheDirFromConfig();
70 static std::string getCachePrefixFromConfig();
72 static unsigned long getCacheSizeFromConfig();
81 HttpCache(
const std::string &cache_dir,
const std::string &prefix,
unsigned long long size);
92#if HASH_CACHE_FILENAME
93 static std::string get_hash(
const std::string &s);
95 virtual std::string
get_cache_file_name(
const std::string &uid,
const std::string &src,
bool mangle=
true);
100 static unsigned long getCacheExpiresTime();
Implementation of a caching mechanism for compressed data.
A cache for content accessed via HTTP.
static HttpCache * get_instance()
virtual std::string get_cache_file_name(const std::string &uid, const std::string &src, bool mangle=true)
utility class for the HTTP catalog module