2 #ifndef __ST_HYPERCACHEWEBSERVICE_H
3 #define __ST_HYPERCACHEWEBSERVICE_H
5 #include "StHyperCacheI.h"
6 #include "StHyperCacheFactory.h"
21 const char*
get(
const std::string& group_key,
const std::string& key,
size_t& value_length);
23 bool set(
const std::string& group_key,
const std::string& key,
const char*
data,
size_t dataLength, time_t expirationTime = 0);
25 bool replace(
const std::string& group_key,
const std::string& key,
const char* data,
size_t dataLength, time_t expirationTime = 0);
27 bool remove(
const std::string& group_key,
const std::string& key);
32 std::string getStat();
34 const std::string& getName() {
return m_Name; };
36 const std::string& getVersion() {
return m_Version; };
38 const std::string& getType() {
return m_Type; };
44 static bool m_IsInitialized;
47 std::string m_Version;
53 char m_JsonErrorBuffer[CURL_ERROR_SIZE];
54 std::string m_JsonBuffer;
60 #endif // __ST_HYPERCACHEWEBSERVICE_H