【发布时间】:2020-12-28 02:00:26
【问题描述】:
当我通过hiredis 适配器执行“脚本加载”命令时,我收到错误错误no of argument。通过 Redis 客户端的相同命令运行良好。
reply_r= (redisReply *)redisCommand(con_r,"script","load", "return 1");
string stemp="";
if(reply_r->len>0)
{
string stt(reply_r->str);
stemp=stt;
//printf("Commad Reply : %s\n", reply_r->str);
}
freeReplyObject(reply_r);// should free the object after reading the data
return stemp;
【问题讨论】: