1 #ifndef __ST_HYPERCACHEI_H
2 #define __ST_HYPERCACHEI_H
15 virtual bool init() = 0;
18 virtual const char*
get(
const std::string& group_key,
const std::string& key,
size_t& value_length) = 0;
20 virtual bool set(
const std::string& group_key,
const std::string& key,
const char*
data,
size_t dataLength, time_t expirationTime = 0) = 0;
22 virtual bool replace(
const std::string& group_key,
const std::string& key,
const char* data,
size_t dataLength, time_t expirationTime = 0) = 0;
24 virtual bool remove(
const std::string& group_key,
const std::string& key) = 0;
26 virtual void clear() = 0;
29 virtual std::string getStat() = 0;
31 virtual const std::string& getName() = 0;
33 virtual const std::string& getVersion() = 0;
35 virtual const std::string& getType() = 0;
39 #endif // __ST_HYPERCACHEI_H