2 #ifndef __ST_HYPERCACHEFILELOCAL_H
3 #define __ST_HYPERCACHEFILELOCAL_H
5 #include "StHyperCacheI.h"
6 #include "StHyperCacheFactory.h"
18 const char*
get(
const std::string& group_key,
const std::string& key,
size_t& value_length);
20 bool set(
const std::string& group_key,
const std::string& key,
const char*
data,
size_t dataLength, time_t expirationTime = 0);
22 bool replace(
const std::string& group_key,
const std::string& key,
const char* data,
size_t dataLength, time_t expirationTime = 0);
24 bool remove(
const std::string& group_key,
const std::string& key);
29 std::string getStat();
31 const std::string& getName() {
return m_Name; };
33 const std::string& getVersion() {
return m_Version; };
35 const std::string& getType() {
return m_Type; };
41 static bool m_IsInitialized;
44 std::string m_Version;
47 std::string m_BasePath;
48 std::string m_AltBasePath;
55 float m_DiskFreeUpper;
56 float m_DiskFreeLower;
57 std::string m_IgnoreKeywords;
59 std::string m_StartEmpty;
61 void doCacheCleanup();
62 void getDiskUsage(
size_t& bytes_free,
size_t& bytes_total);
68 #endif // __ST_HYPERCACHEFILELOCAL_H