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  */
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 
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)
#define ACL_CPP_DEPRECATED
Definition: atomic.hpp:86
~redis(void)
Definition: redis.hpp:75
#define ACL_CPP_API