2 #include "../acl_cpp_define.hpp" 4 #include "../stdlib/string.hpp" 7 #ifndef ACL_CLIENT_ONLY 13 class redis_client_cluster;
19 time_t ttl = 0,
const char* sid = NULL);
23 bool set(
const char*
name,
const char* value);
26 bool set(
const char*
name,
const void* value,
size_t len);
32 bool del(
const char*
name);
38 bool get_attrs(std::map<string, session_string>& attrs);
41 bool get_attrs(
const std::vector<string>& names,
42 std::vector<session_string>& values);
45 bool set_attrs(
const std::map<string, session_string>& attrs);
49 bool set_timeout(time_t ttl);
55 std::map<string, session_string*> buffers_;
60 #endif // ACL_CLIENT_ONLY
HTTP_API void const char * name