2 #include "../acl_cpp_define.hpp" 5 #include "../stdlib/string.hpp" 8 #if !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE) 55 bool hmset(
const char* key,
const std::map<string, string>& attrs);
56 bool hmset(
const char* key,
size_t klen,
57 const std::map<string, string>& attrs);
58 bool hmset(
const char* key,
const std::map<string, const char*>& attrs);
59 bool hmset(
const char* key,
const std::vector<string>& names,
60 const std::vector<string>& values);
61 bool hmset(
const char* key,
size_t klen,
62 const std::vector<string>& names,
63 const std::vector<string>& values);
64 bool hmset(
const char* key,
const std::vector<const char*>& names,
65 const std::vector<const char*>& values);
66 bool hmset(
const char* key,
const char* names[],
const char* values[],
68 bool hmset(
const char* key,
const char* names[],
const size_t names_len[],
69 const char* values[],
const size_t values_len[],
size_t argc);
70 bool hmset(
const char* key,
size_t klen,
const char* names[],
71 const size_t names_len[],
const char* values[],
72 const size_t values_len[],
size_t argc);
119 bool hmget(
const char* key,
const std::vector<string>& names,
120 std::vector<string>* result = NULL);
121 bool hmget(
const char* key,
size_t klen,
122 const std::vector<string>& names,
123 std::vector<string>* result = NULL);
124 bool hmget(
const char* key,
const std::vector<const char*>& names,
125 std::vector<string>* result = NULL);
127 bool hmget(
const char* key,
const char* names[],
size_t argc,
128 std::vector<string>* result = NULL);
129 bool hmget(
const char* key,
const char* names[],
const size_t lens[],
130 size_t argc, std::vector<string>* result = NULL);
131 bool hmget(
const char* key,
size_t klen,
132 const char* names[],
const size_t lens[],
133 size_t argc, std::vector<string>* result = NULL);
155 int hset(
const char* key,
const char*
name,
const char* value);
156 int hset(
const char* key,
const char*
name,
157 const char* value,
size_t value_len);
158 int hset(
const char* key,
const char*
name,
size_t name_len,
159 const char* value,
size_t value_len);
160 int hset(
const char* key,
size_t klen,
const char*
name,
161 size_t name_len,
const char* value,
size_t value_len);
183 int hsetnx(
const char* key,
const char*
name,
const char* value);
184 int hsetnx(
const char* key,
const char*
name,
185 const char* value,
size_t value_len);
186 int hsetnx(
const char* key,
const char*
name,
size_t name_len,
187 const char* value,
size_t value_len);
188 int hsetnx(
const char* key,
size_t klen,
const char*
name,
189 size_t name_len,
const char* value,
size_t value_len);
208 bool hget(
const char* key,
const char*
name,
string& result);
209 bool hget(
const char* key,
const char*
name,
210 size_t name_len,
string& result);
211 bool hget(
const char* key,
size_t klen,
const char*
name,
212 size_t name_len,
string& result);
229 bool hgetall(
const char* key, std::map<string, string>& result);
230 bool hgetall(
const char* key,
size_t klen,
231 std::map<string, string>& result);
232 bool hgetall(
const char* key, std::vector<string>& names,
233 std::vector<string>& values);
234 bool hgetall(
const char* key,
size_t klen,
235 std::vector<string>& names, std::vector<string>& values);
236 bool hgetall(
const char* key, std::vector<const char*>& names,
237 std::vector<const char*>& values);
251 int hdel(
const char* key,
const char* first_name);
252 int hdel(
const char* key,
const char* names[],
size_t argc);
253 int hdel(
const char* key,
const char* names[],
254 const size_t names_len[],
size_t argc);
255 int hdel(
const char* key,
size_t klen,
const char* names[],
256 const size_t names_len[],
size_t argc);
257 int hdel(
const char* key,
const std::vector<string>& names);
258 int hdel(
const char* key,
size_t klen,
const std::vector<string>& names);
259 int hdel(
const char* key,
const std::vector<const char*>& names);
260 int hdel_fields(
const char* key,
const char* names[],
size_t argc);
261 int hdel_fields(
const char* key,
const char* names[],
262 const size_t names_len[],
size_t argc);
263 int hdel_fields(
const char* key,
size_t klen,
264 const char* names[],
const size_t names_len[],
size_t argc);
265 int hdel_fields(
const char* key,
const std::vector<string>& names);
266 int hdel_fields(
const char* key,
size_t klen,
267 const std::vector<string>& names);
268 int hdel_fields(
const char* key,
const std::vector<const char*>& names);
269 int hdel_fields(
const char* key,
const char* first_name, ...);
287 bool hincrby(
const char* key,
const char*
name,
288 long long int inc,
long long int* result = NULL);
306 bool hincrbyfloat(
const char* key,
const char*
name,
307 double inc,
double* result = NULL);
320 bool hkeys(
const char* key, std::vector<string>& names);
321 bool hkeys(
const char* key,
size_t klen, std::vector<string>& names);
335 bool hexists(
const char* key,
const char*
name);
336 bool hexists(
const char* key,
const char*
name,
size_t name_len);
337 bool hexists(
const char* key,
size_t klen,
const char*
name,
size_t name_len);
349 bool hvals(
const char* key, std::vector<string>& values);
350 bool hvals(
const char* key,
size_t klen, std::vector<string>& values);
366 int hlen(
const char* key);
367 int hlen(
const char* key,
size_t klen);
382 int hstrlen(
const char* key,
const char*
name,
size_t name_len);
383 int hstrlen(
const char* key,
size_t klen,
const char*
name,
size_t name_len);
384 int hstrlen(
const char* key,
const char *
name);
410 int hscan(
const char* key,
int cursor, std::map<string, string>& out,
411 const char* pattern = NULL,
const size_t* count = NULL);
412 int hscan(
const char* key,
size_t klen,
int cursor,
413 std::map<string, string>& out,
const char* pattern = NULL,
414 const size_t* count = NULL);
419 #endif // !defined(ACL_CLIENT_ONLY) && !defined(ACL_REDIS_DISABLE)
HTTP_API void const char * name
#define ACL_CPP_DEPRECATED