acl  3.5.3.0
redis_master.hpp
浏览该文件的文档.
1 #pragma once
2 #include "../acl_cpp_define.hpp"
3 #include "../stdlib/string.hpp"
4 
5 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
6 
7 namespace acl
8 {
9 
11 {
12 public:
13  redis_master(void);
14  ~redis_master(void) {}
15 
16  string name_;
17  string ip_;
18  int port_;
19  string runid_;
20  string flags_;
22  unsigned link_refcount_;
23  unsigned last_ping_sent_;
25  unsigned last_ping_reply_;
27  unsigned info_refresh_;
30  time_t config_epoch_;
31  unsigned num_slaves_;
33  unsigned quorum_;
35  unsigned parallel_syncs_;
36 };
37 
38 }
39 
40 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
unsigned link_refcount_
unsigned last_ping_sent_
unsigned num_other_sentinels_
unsigned last_ok_ping_reply_
unsigned last_ping_reply_
unsigned down_after_milliseconds_
unsigned info_refresh_
#define ACL_CPP_API
time_t role_reported_time_
unsigned failover_timeout_
unsigned parallel_syncs_
unsigned link_pending_commands_