2 #include "../acl_cpp_define.hpp" 5 #include "../stdlib/string.hpp" 8 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 48 return status_.c_str();
78 slaves_.push_back(slave);
80 const std::vector<redis_role4slave>&
get_slaves(
void)
const 87 std::vector<redis_role4slave> slaves_;
109 return role_name_.c_str();
114 std::vector<string> masters_;
127 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
void set_offset(long long off)
void add_slave(const redis_role4slave &slave)
long long get_offset(void) const
void set_offset(long long off)
virtual ~redis_role(void)
const char * get_status(void) const
void set_ip(const char *ip)
const redis_role4slave & get_role4slave(void) const
const char * get_ip(void) const
const std::vector< redis_role4slave > & get_slaves(void) const
const char * get_role_name(void) const
void set_status(const char *status)
long long get_offset(void) const
const redis_role4master & get_role4master(void) const