为什么这段代码
redis.set("test", true, ex: 24.hours)返回以下异常?
Redis::CommandError: ERR wrong number of arguments for 'set' command我用这些宝石
发布于 2015-01-22 11:07:42
这可能是redis版本的问题,请查看以下内容以获得更多信息:https://github.com/redis/redis-rb/issues/372
发布于 2015-08-31 10:44:24
以上答案是正确的。你需要更新Redis。如果您在mac上,请按照以下步骤快速更新Redis:
$ make$ make install如果你现在有一个老版本的Redis正在运行,那就关掉它吧:
$ ps -ef | grep redis,PID是第1行的第二个数字。sudo kill <the PID>就这样
https://stackoverflow.com/questions/28086866
复制相似问题