acl
3.5.3.0
redis.hpp
浏览该文件的文档.
1
#pragma once
2
#include "../acl_cpp_define.hpp"
3
#include "
redis_connection.hpp
"
4
#include "
redis_hash.hpp
"
5
#include "
redis_hyperloglog.hpp
"
6
#include "
redis_key.hpp
"
7
#include "
redis_list.hpp
"
8
#include "
redis_pubsub.hpp
"
9
#include "
redis_script.hpp
"
10
#include "
redis_server.hpp
"
11
#include "
redis_set.hpp
"
12
#include "
redis_string.hpp
"
13
#include "
redis_transaction.hpp
"
14
#include "
redis_zset.hpp
"
15
#include "
redis_cluster.hpp
"
16
#include "
redis_geo.hpp
"
17
#include "
redis_stream.hpp
"
18
19
#if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
20
21
namespace
acl
22
{
23
24
/**
25
* 该类继承了所有 redis 命令类,因此可以只通过此类对象使用所有的 redis 命令。
26
* inherit all the redis command class, which include all the commands
27
* of Key, String, Hash, List, Set, SortedSet, Hyperloglog, Pub/Sub,
28
* Transaction, Script, Connection, Server.
29
*/
30
class
ACL_CPP_API
redis
31
:
public
redis_connection
32
,
public
redis_hash
33
,
public
redis_hyperloglog
34
,
public
redis_key
35
,
public
redis_list
36
,
public
redis_pubsub
37
,
public
redis_script
38
,
public
redis_server
39
,
public
redis_set
40
,
public
redis_string
41
,
public
redis_transaction
42
,
public
redis_zset
43
,
public
redis_cluster
44
,
public
redis_geo
45
,
public
redis_stream
46
{
47
public
:
48
/**
49
* 非集群方式的构造函数
50
* the constructor with no redis cluster
51
* @param conn {redis_client*} 一个 redis 节点的连接对象
52
* one redis node's connection
53
*/
54
redis
(
redis_client
* conn = NULL);
55
56
/**
57
* 集群方式的构造函数
58
* the constructor in redis cluster mode
59
* @param cluster {redis_client_cluster*} 集群对象
60
* the redis cluster object
61
*/
62
redis
(
redis_client_cluster
* cluster);
63
64
/**
65
* pipeline 方式的构造函数
66
* the constructor in redis pipeline mode
67
* @param pipeline {redis_client_pipeline*} pipeline 对象
68
* the redis pipeline object
69
*/
70
redis
(
redis_client_pipeline
* pipeline);
71
72
ACL_CPP_DEPRECATED
73
redis
(
redis_client_cluster
* cluster,
size_t
max_conns);
74
75
~redis
(
void
) {}
76
};
77
78
}
// namespace acl
79
80
#endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
acl::redis_key
Definition:
redis_key.hpp:23
acl::redis_stream
Definition:
redis_stream.hpp:142
acl::redis_hash
Definition:
redis_hash.hpp:19
redis_set.hpp
acl::redis_transaction
Definition:
redis_transaction.hpp:12
ACL_CPP_DEPRECATED
#define ACL_CPP_DEPRECATED
Definition:
atomic.hpp:86
redis_script.hpp
redis_hyperloglog.hpp
redis_pubsub.hpp
acl::redis_set
Definition:
redis_set.hpp:12
redis_list.hpp
acl
Definition:
acl_cpp_init.hpp:4
acl::redis_pubsub
Definition:
redis_pubsub.hpp:12
acl::redis_client
Definition:
redis_client.hpp:27
acl::redis_list
Definition:
redis_list.hpp:10
acl::redis_string
Definition:
redis_string.hpp:16
redis_key.hpp
redis_connection.hpp
acl::redis_connection
Definition:
redis_connection.hpp:18
acl::redis_script
Definition:
redis_script.hpp:12
redis_transaction.hpp
redis_geo.hpp
acl::redis_zset
Definition:
redis_zset.hpp:13
redis_hash.hpp
acl::redis_geo
Definition:
redis_geo.hpp:95
acl::redis_server
Definition:
redis_server.hpp:12
redis_cluster.hpp
acl::redis::~redis
~redis(void)
Definition:
redis.hpp:75
acl::redis
Definition:
redis.hpp:30
redis_zset.hpp
acl::redis_client_pipeline
Definition:
redis_client_pipeline.hpp:196
acl::redis_client_cluster
Definition:
redis_client_cluster.hpp:24
ACL_CPP_API
#define ACL_CPP_API
Definition:
acl_cpp_define.hpp:16
redis_stream.hpp
redis_server.hpp
acl::redis_hyperloglog
Definition:
redis_hyperloglog.hpp:12
redis_string.hpp
acl::redis_cluster
Definition:
redis_cluster.hpp:18
include
acl_cpp
redis
redis.hpp
生成于 2021年 九月 10日 星期五 11:14:44 , 为 acl使用
1.8.15