acl
3.5.3.0
redis_sentinel.hpp
浏览该文件的文档.
1
#pragma once
2
#include "../acl_cpp_define.hpp"
3
#include <vector>
4
#include "
redis_command.hpp
"
5
#include "
redis_master.hpp
"
6
#include "
redis_slave.hpp
"
7
8
#if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
9
10
namespace
acl
11
{
12
13
class
ACL_CPP_API
redis_sentinel
:
virtual
public
redis_command
14
{
15
public
:
16
redis_sentinel
(
void
);
17
redis_sentinel
(
redis_client
* conn);
18
virtual
~
redis_sentinel
(
void
);
19
20
bool
sentinel_master(
const
char
*
name
,
redis_master
& out);
21
bool
sentinel_masters(std::vector<redis_master>& out);
22
bool
sentinel_slaves(
const
char
* master_name,
23
std::vector<redis_slave>& out);
24
25
bool
sentinel_get_master_addr_by_name(
const
char
* master_name,
26
string
& ip,
int
& port);
27
int
sentinel_reset(
const
char
* pattern);
28
bool
sentinel_failover(
const
char
* master_name);
29
30
bool
sentinel_flushconfig(
void
);
31
bool
sentinel_remove(
const
char
* master_name);
32
bool
sentinel_monitor(
const
char
* master_name,
const
char
* ip,
33
int
port,
int
quorum);
34
bool
sentinel_set(
const
char
* master_name,
const
char
*
name
,
35
const
char
* value);
36
bool
sentinel_set(
const
char
* master_name,
const
char
*
name
,
37
unsigned
value);
38
};
39
40
}
41
42
#endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
redis_slave.hpp
name
HTTP_API void const char * name
Definition:
lib_http.h:620
acl::redis_master
Definition:
redis_master.hpp:10
redis_master.hpp
acl::redis_sentinel
Definition:
redis_sentinel.hpp:13
redis_command.hpp
acl
Definition:
acl_cpp_init.hpp:4
acl::redis_client
Definition:
redis_client.hpp:27
acl::redis_command
Definition:
redis_command.hpp:26
ACL_CPP_API
#define ACL_CPP_API
Definition:
acl_cpp_define.hpp:16
include
acl_cpp
redis
redis_sentinel.hpp
生成于 2021年 九月 10日 星期五 11:14:44 , 为 acl使用
1.8.15