2 #include "../acl_cpp_define.hpp" 7 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 57 int publish(
const char*
channel,
const char* msg,
size_t len);
74 int subscribe(
const char* first_channel, ...);
75 int subscribe(
const std::vector<const char*>& channels);
76 int subscribe(
const std::vector<string>& channels);
87 int unsubscribe(
const char* first_channel, ...);
88 int unsubscribe(
const std::vector<const char*>& channels);
89 int unsubscribe(
const std::vector<string>& channels);
102 int psubscribe(
const char* first_pattern, ...);
103 int psubscribe(
const std::vector<const char*>& patterns);
104 int psubscribe(
const std::vector<string>& patterns);
115 int punsubscribe(
const char* first_pattern, ...);
116 int punsubscribe(
const std::vector<const char*>& patterns);
117 int punsubscribe(
const std::vector<string>& patterns);
134 bool get_message(
string&
channel,
string& msg,
string* message_type = NULL,
135 string* pattern = NULL,
int timeout = -1);
162 int pubsub_channels(std::vector<string>* channels,
163 const char* first_pattern, ...);
164 int pubsub_channels(
const std::vector<const char*>& patterns,
165 std::vector<string>* channels);
166 int pubsub_channels(
const std::vector<string>& patterns,
167 std::vector<string>* channels);
182 int pubsub_numsub(std::map<string, int>& out,
183 const char* first_channel, ...);
184 int pubsub_numsub(
const std::vector<const char*>& channels,
185 std::map<string, int>& out);
186 int pubsub_numsub(
const std::vector<string>& channels,
187 std::map<string, int>& out);
200 int subop(
const char* cmd,
const std::vector<const char*>& channels);
201 int subop_result(
const char* cmd,
const std::vector<const char*>& channels);
202 int subop(
const char* cmd,
const std::vector<string>& channels);
203 int subop_result(
const char* cmd,
const std::vector<string>& channels);
204 int check_channel(
const redis_result* obj,
const char* cmd,
206 int pubsub_numsub(std::map<string, int>& out);
211 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
#define ACL_CPP_DEPRECATED