2 #include "../acl_cpp_define.hpp" 4 #include "../stdlib/string.hpp" 7 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 58 int sadd(
const char* key,
const char* first_member, ...);
59 int sadd(
const char* key,
const std::vector<const char*>& memsbers);
60 int sadd(
const char* key,
const std::vector<string>& members);
61 int sadd(
const char* key,
const char* argv[],
size_t argc);
62 int sadd(
const char* key,
const char* argv[],
const size_t lens[],
76 bool spop(
const char* key,
string& buf);
92 int scard(
const char* key);
127 int smembers(
const char* key, std::vector<string>* members);
148 int smove(
const char* src,
const char* dst,
const char* member);
149 int smove(
const char* src,
const char* dst,
const string& member);
150 int smove(
const char* src,
const char* dst,
151 const char* member,
size_t len);
187 int sdiff(std::vector<string>* members,
const char* first_key, ...);
188 int sdiff(
const std::vector<const char*>& keys,
189 std::vector<string>* members);
190 int sdiff(
const std::vector<string>& keys,
191 std::vector<string>* members);
206 int sinter(std::vector<string>* members,
const char* first_key, ...);
207 int sinter(
const std::vector<const char*>& keys,
208 std::vector<string>* members);
209 int sinter(
const std::vector<string>& keys,
210 std::vector<string>* members);
225 int sunion(std::vector<string>* members,
const char* first_key, ...);
226 int sunion(
const std::vector<const char*>& keys,
227 std::vector<string>* members);
228 int sunion(
const std::vector<string>& keys,
229 std::vector<string>* members);
244 int sdiffstore(
const char* dst,
const char* first_key, ...);
245 int sdiffstore(
const char* dst,
const std::vector<const char*>& keys);
246 int sdiffstore(
const char* dst,
const std::vector<string>& keys);
261 int sinterstore(
const char* dst,
const char* first_key, ...);
262 int sinterstore(
const char* dst,
const std::vector<const char*>& keys);
263 int sinterstore(
const char* dst,
const std::vector<string>& keys);
278 int sunionstore(
const char* dst,
const char* first_key, ...);
279 int sunionstore(
const char* dst,
const std::vector<const char*>& keys);
280 int sunionstore(
const char* dst,
const std::vector<string>& keys);
294 bool sismember(
const char* key,
const char* member);
295 bool sismember(
const char* key,
const char* member,
size_t len);
309 int srandmember(
const char* key,
string& out);
310 int srandmember(
const char* key,
size_t n, std::vector<string>& out);
327 int srem(
const char* key,
const char* first_member, ...);
328 int srem(
const char* key,
const std::vector<string>& members);
329 int srem(
const char* key,
const std::vector<const char*>& members);
330 int srem(
const char* key,
const char* members[],
331 size_t lens[],
size_t argc);
357 int sscan(
const char* key,
int cursor, std::vector<string>& out,
358 const char* pattern = NULL,
const size_t* count = NULL);
363 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) #define ACL_CPP_DEPRECATED