Does Redis client 'hiredis' supports variadic commands (specially
variadic rpush)?
If yes, can you please tell me the usage.
Thanks,
Anurag Berdia
redisContext *c = redisConnectUnix("/tmp/redis.sock");...redisReply *reply = redisCommand(c,"RPUSH key%d %s %s %s %s", key, item1, item2, item3, item4 );...freeReplyObject(reply);
Thanks for reply.
In the given case, how can we add N number of items at run time.
I mean in first call i want to push 3 elements, then in seconds 10 and
in third 2 and so on
How can we implement this using hiredis?
Thanks,
Anurag Berdia
I know this is old, but it is the only post on the redis forum that deals with this issue.I am writing a matlab interface to redis in C. I am not good at C, but I am worse at C++. I need to use redisCommandArgv, because I need to transform the args list from matlab MxArrays to char arrays, and then pass those to redisCommand. So variadic args list a la C will not work.I have an embarrassing question - how would you write an example that uses redisCommandArgv in C? I understand the semantics, but I am a bit confused about how to iteratively construct the char **argv. Why not just make it char* ?
thxGeorge