acl  3.5.3.0
redis_slave.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_slave(void);
14  ~redis_slave(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_;
32  string master_host_;
34  unsigned slave_priority_;
35  unsigned long slave_repl_offset_;
36 };
37 
38 }
39 
40 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
time_t role_reported_time_
Definition: redis_slave.hpp:29
unsigned long slave_repl_offset_
Definition: redis_slave.hpp:35
unsigned slave_priority_
Definition: redis_slave.hpp:34
string master_link_status_
Definition: redis_slave.hpp:31
time_t master_link_down_time_
Definition: redis_slave.hpp:30
unsigned last_ping_reply_
Definition: redis_slave.hpp:25
unsigned last_ping_sent_
Definition: redis_slave.hpp:23
unsigned link_pending_commands_
Definition: redis_slave.hpp:21
unsigned info_refresh_
Definition: redis_slave.hpp:27
unsigned down_after_milliseconds_
Definition: redis_slave.hpp:26
unsigned last_ok_ping_reply_
Definition: redis_slave.hpp:24
#define ACL_CPP_API
unsigned link_refcount_
Definition: redis_slave.hpp:22