vipshop / hiredis-vip

Support redis cluster. Maintained and used at vipshop.
BSD 3-Clause "New" or "Revised" License
322 stars 173 forks source link

redisClusterCommand PUBLISH fails with Parse command error #111

Open snalamva opened 5 years ago

snalamva commented 5 years ago

The below redisClusterCommand API with "PUBLISH" command fails , and returns "NULL" reply and c->errstr print as "Parse command error"

reply = redisClusterCommand(c,"PUBLISH test 1") .

Could you please confirm whether redisClusterCommand() API with "PUBLISH" command supported with "hiredis-vip" ?

Thanks, Sreejith

thakurajayL commented 5 years ago

Publish is not supported in hiredis-vip. You can check the commands.c file. THis has details about all the supported command. i read pub/sub document at https://redis.io/topics/pubsub . I don't see any reason why it can not be supported on hiredis-vip. You can plan to support it in this library. Should not be difficult to do so.

snalamva commented 5 years ago

Ok..got it..Thanks for the details.