Skip to content

hmset in Batch_write gives error #10

@saroj13278

Description

@saroj13278

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions