| /f-stack/app/redis-5.0.5/deps/hiredis/examples/ |
| H A D | example.c | 27 reply = redisCommand(c,"PING"); in main() 32 reply = redisCommand(c,"SET %s %s", "foo", "hello world"); in main() 37 reply = redisCommand(c,"SET %b %b", "bar", (size_t) 3, "hello", (size_t) 5); in main() 42 reply = redisCommand(c,"GET foo"); in main() 46 reply = redisCommand(c,"INCR counter"); in main() 50 reply = redisCommand(c,"INCR counter"); in main() 55 reply = redisCommand(c,"DEL mylist"); in main() 61 reply = redisCommand(c,"LPUSH mylist element-%s", buf); in main() 66 reply = redisCommand(c,"LRANGE mylist 0 -1"); in main()
|
| /f-stack/app/redis-5.0.5/deps/hiredis/ |
| H A D | test.c | 58 reply = redisCommand(c,"SELECT 9"); in select_database() 63 reply = redisCommand(c,"DBSIZE"); in select_database() 80 reply = redisCommand(c,"SELECT 9"); in disconnect() 83 reply = redisCommand(c,"FLUSHDB"); in disconnect() 393 reply = redisCommand(c,"PING"); in test_blocking_connection() 407 reply = redisCommand(c,"GET foo"); in test_blocking_connection() 415 reply = redisCommand(c,"GET foo"); in test_blocking_connection() 450 reply = (redisCommand(c,"EXEC")); in test_blocking_connection() 495 reply = redisCommand(c, "PING"); in test_blocking_connection_timeouts() 503 reply = redisCommand(c, "PING"); in test_blocking_connection_timeouts() [all …]
|
| H A D | README.md | 46 void *redisCommand(redisContext *c, const char *format, ...); 76 `redisCommand`. This function takes a format similar to printf. In the simplest form, 79 reply = redisCommand(context, "SET foo bar"); 85 reply = redisCommand(context, "SET foo %s", value); 91 reply = redisCommand(context, "SET foo %b", value, (size_t) valuelen); 98 reply = redisCommand(context, "SET key:%s %s", myid, value); 103 The return value of `redisCommand` holds a reply when the command was 109 The standard replies that `redisCommand` are of the type `redisReply`. The 169 The return value has the same semantic as `redisCommand`. 192 to the `redisCommand` family, apart from not returning a reply: [all …]
|
| H A D | hiredis.h | 216 void *redisCommand(redisContext *c, const char *format, ...);
|
| H A D | hiredis.c | 1008 void *redisCommand(redisContext *c, const char *format, ...) { in redisCommand() function
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | server.h | 654 struct redisCommand *cmd; 729 struct redisCommand *cmd, *lastcmd; /* Last command executed. */ 840 struct redisCommand *cmd; 998 struct redisCommand *delCommand, *multiCommand, *lpushCommand, 1299 struct redisCommand { struct 1716 struct redisCommand *lookupCommand(sds name); 1717 struct redisCommand *lookupCommandByCString(char *s); 1718 struct redisCommand *lookupCommandOrOriginal(sds name); 1869 int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys); 1870 int *sortGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys); [all …]
|
| H A D | db.c | 1195 int *getKeysUsingCommandTable(struct redisCommand *cmd,robj **argv, int argc, int *numkeys) { in getKeysUsingCommandTable() 1240 int *getKeysFromCommand(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in getKeysFromCommand() 1258 int *zunionInterGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in zunionInterGetKeys() 1287 int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in evalGetKeys() 1315 int *sortGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in sortGetKeys() 1357 int *migrateGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in migrateGetKeys() 1388 int *georadiusGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in georadiusGetKeys() 1424 int *xreadGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in xreadGetKeys()
|
| H A D | server.c | 132 struct redisCommand redisCommandTable[] = { 2199 struct redisCommand *c = redisCommandTable+j; in populateCommandTable() 2232 struct redisCommand *c; in resetCommandTableStats() 2238 c = (struct redisCommand *) dictGetVal(de); in resetCommandTableStats() 2285 struct redisCommand *lookupCommand(sds name) { in lookupCommand() 2289 struct redisCommand *lookupCommandByCString(char *s) { in lookupCommandByCString() 2290 struct redisCommand *cmd; in lookupCommandByCString() 2305 struct redisCommand *lookupCommandOrOriginal(sds name) { in lookupCommandOrOriginal() 2425 struct redisCommand *real_cmd = c->cmd; in call() 3640 struct redisCommand *c; in genRedisInfoString() [all …]
|
| H A D | cluster.h | 286 clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashsl…
|
| H A D | multi.c | 120 struct redisCommand *orig_cmd; in execCommand()
|
| H A D | blocked.c | 360 struct redisCommand *cmd = where == ZSET_MIN ? in handleClientsBlockedOnKeys()
|
| H A D | aof.c | 550 sds catAppendOnlyExpireAtCommand(sds buf, struct redisCommand *cmd, robj *key, robj *seconds) { in catAppendOnlyExpireAtCommand() 580 void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv, int argc) { in feedAppendOnlyFile() 758 struct redisCommand *cmd; in loadAppendOnlyFile()
|
| H A D | module.c | 184 struct redisCommand *rediscmd; 572 int *moduleGetCommandKeysViaAPI(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in moduleGetCommandKeysViaAPI() 703 struct redisCommand *rediscmd; in RM_CreateCommand() 1333 struct redisCommand *cmd; in RM_Replicate() 2741 struct redisCommand *cmd; in RM_Call() 3413 struct redisCommand *cmd; in RM_EmitAOF() 5122 struct redisCommand *cmd = dictGetVal(de); in moduleUnregisterCommands()
|
| H A D | redis-cli.c | 85 (redisCommand(n->context, __VA_ARGS__)) 512 redisReply *reply = redisCommand(context, "COMMAND"); in cliIntegrateHelp() 729 reply = redisCommand(context,"AUTH %s",config.auth); in cliAuth() 742 reply = redisCommand(context,"SELECT %d",config.dbnum); in cliSelect() 1847 redisReply *reply = redisCommand(context, in evalMode() 2273 redisReply *reply = redisCommand(node->context,"AUTH %s",config.auth); in clusterManagerNodeConnect() 5009 redisReply *r = redisCommand(node->context, "SHUTDOWN"); in clusterManagerCommandDeleteNode() 6204 redisReply *reply = redisCommand(context, "SCAN %llu", *it); in sendScan() 6235 reply = redisCommand(context, "DBSIZE"); in getDbSize() 6800 reply = redisCommand(context,"SCAN %llu MATCH %s", in scanMode() [all …]
|
| H A D | sentinel.c | 444 struct redisCommand sentinelcmds[] = { 475 struct redisCommand *cmd = sentinelcmds+j; in initSentinel()
|
| H A D | scripting.c | 350 struct redisCommand *cmd; in luaRedisGenericCommand()
|
| H A D | cluster.c | 5452 clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashsl… in getNodeByQuery() 5493 struct redisCommand *mcmd; in getNodeByQuery()
|
| H A D | config.c | 608 struct redisCommand *cmd = lookupCommand(argv[1]); in loadServerConfigFromString()
|