toymachine/libredis — Issue #10: hmset in Batch_write gives error
Author: saroj13278
Created: 2012-03-01 10:00:26+00:00
State: open

Hi ,
Am writing a C -application which used to write data to redis.So basically the command is hmset input_list:0 msg "mess

agetest 1"

So the way am approaching is
sprintf(msg,"test message from redis 1"
sprintf(cmd,"hmset input_list:0 msg %s",msg);
Batch_write(batch, cmd, strlen(cmd), 1);
Here the error comes as wrong number of argumnets in hmset and as I check it through monitor the error is due to the fact that the command is fired to redis as "hmset input_list:0 test message from redis i.e after space it takes it as parameter not as single string.
Can u please help me in this.