2 #include "../acl_cpp_define.hpp" 5 #include "../stdlib/string.hpp" 6 #include "../stdlib/noncopyable.hpp" 8 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 123 void clear_slaves(
bool free_all =
false);
133 void add_slot_range(
size_t min,
size_t max);
140 const std::vector<std::pair<size_t, size_t> >& get_slots()
const;
149 return type_.c_str();
199 return master_id_.c_str();
219 return master_ ==
this;
239 return addr_.c_str();
249 return addr_info_.c_str();
262 std::vector<redis_node*> slaves_;
263 std::vector<std::pair<size_t, size_t> > slots_;
268 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) const char * get_master_id() const
bool is_connected() const
const redis_node * get_master() const
const char * get_id() const
bool is_handshaking() const
const char * get_addr() const
const char * get_type() const
const std::vector< redis_node * > * get_slaves() const
const char * get_addr_info() const