Home
last modified time | relevance | path

Searched refs:redisCommand (Results 1 – 16 of 16) sorted by relevance

/redis-3.2.3/deps/hiredis/examples/
H A Dexample.c27 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()
/redis-3.2.3/deps/hiredis/
H A Dtest.c50 reply = redisCommand(c,"SELECT 9"); in select_database()
55 reply = redisCommand(c,"DBSIZE"); in select_database()
72 reply = redisCommand(c,"SELECT 9"); in disconnect()
75 reply = redisCommand(c,"FLUSHDB"); in disconnect()
353 reply = redisCommand(c,"PING"); in test_blocking_connection()
367 reply = redisCommand(c,"GET foo"); in test_blocking_connection()
375 reply = redisCommand(c,"GET foo"); in test_blocking_connection()
384 reply = redisCommand(c,"GET nokey"); in test_blocking_connection()
410 reply = (redisCommand(c,"EXEC")); in test_blocking_connection()
437 reply = redisCommand(c,"INFO"); in test_blocking_io_errors()
[all …]
H A DREADME.md35 void *redisCommand(redisContext *c, const char *format, ...);
57 `redisCommand`. This function takes a format similar to printf. In the simplest form,
60 reply = redisCommand(context, "SET foo bar");
65 reply = redisCommand(context, "SET foo %s", value);
71 reply = redisCommand(context, "SET foo %b", value, (size_t) valuelen);
78 reply = redisCommand(context, "SET key:%s %s", myid, value);
82 The return value of `redisCommand` holds a reply when the command was
88 The standard replies that `redisCommand` are of the type `redisReply`. The
148 The return value has the same semantic as `redisCommand`.
171 to the `redisCommand` family, apart from not returning a reply:
[all …]
H A Dhiredis.h213 void *redisCommand(redisContext *c, const char *format, ...);
H A Dhiredis.c1345 void *redisCommand(redisContext *c, const char *format, ...) { in redisCommand() function
/redis-3.2.3/src/
H A Dserver.h519 struct redisCommand *cmd;
575 struct redisCommand *cmd, *lastcmd; /* Last command executed. */
677 struct redisCommand *cmd;
754 struct redisCommand *delCommand, *multiCommand, *lpushCommand, *lpopCommand,
989 struct redisCommand { struct
1309 struct redisCommand *lookupCommand(sds name);
1310 struct redisCommand *lookupCommandByCString(char *s);
1311 struct redisCommand *lookupCommandOrOriginal(sds name);
1435 int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
1436 int *sortGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys);
[all …]
H A Dserver.c125 struct redisCommand redisCommandTable[] = {
2000 struct redisCommand *c = redisCommandTable+j; in populateCommandTable()
2037 struct redisCommand *c = redisCommandTable+j; in resetCommandTableStats()
2083 struct redisCommand *lookupCommand(sds name) { in lookupCommand()
2087 struct redisCommand *lookupCommandByCString(char *s) { in lookupCommandByCString()
2088 struct redisCommand *cmd; in lookupCommandByCString()
2103 struct redisCommand *lookupCommandOrOriginal(sds name) { in lookupCommandOrOriginal()
2104 struct redisCommand *cmd = dictFetchValue(server.commands, name); in lookupCommandOrOriginal()
2720 void addReplyCommand(client *c, struct redisCommand *cmd) { in addReplyCommand()
2777 struct redisCommand *cmd = lookupCommand(c->argv[2]->ptr); in commandCommand()
[all …]
H A Ddb.c1065 int *getKeysUsingCommandTable(struct redisCommand *cmd,robj **argv, int argc, int *numkeys) { in getKeysUsingCommandTable()
1095 int *getKeysFromCommand(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in getKeysFromCommand()
1111 int *zunionInterGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in zunionInterGetKeys()
1140 int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in evalGetKeys()
1168 int *sortGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in sortGetKeys()
1210 int *migrateGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys) { in migrateGetKeys()
H A Dcluster.h257 clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashsl…
H A Dredis-cli.c271 redisReply *reply = redisCommand(context, "COMMAND"); in cliIntegrateHelp()
483 reply = redisCommand(context,"AUTH %s",config.auth); in cliAuth()
496 reply = redisCommand(context,"SELECT %d",config.dbnum); in cliSelect()
1412 redisReply *reply = redisCommand(context, in evalMode()
1935 redisReply *reply = redisCommand(context, "SCAN %llu", *it); in sendScan()
1966 reply = redisCommand(context, "DBSIZE"); in getDbSize()
2358 reply = redisCommand(context,"SCAN %llu MATCH %s", in scanMode()
2361 reply = redisCommand(context,"SCAN %llu",cur); in scanMode()
H A Dmulti.c118 struct redisCommand *orig_cmd; in execCommand()
H A Daof.c481 sds catAppendOnlyExpireAtCommand(sds buf, struct redisCommand *cmd, robj *key, robj *seconds) { in catAppendOnlyExpireAtCommand()
511 void feedAppendOnlyFile(struct redisCommand *cmd, int dictid, robj **argv, int argc) { in feedAppendOnlyFile()
645 struct redisCommand *cmd; in loadAppendOnlyFile()
H A Dsentinel.c425 struct redisCommand sentinelcmds[] = {
454 struct redisCommand *cmd = sentinelcmds+j; in initSentinel()
H A Dscripting.c350 struct redisCommand *cmd; in luaRedisGenericCommand()
H A Dconfig.c471 struct redisCommand *cmd = lookupCommand(argv[1]); in loadServerConfigFromString()
H A Dcluster.c4974 clusterNode *getNodeByQuery(client *c, struct redisCommand *cmd, robj **argv, int argc, int *hashsl… in getNodeByQuery()
5007 struct redisCommand *mcmd; in getNodeByQuery()