报错内容:ERR bad lua script for redis cluster, all the keys that the script uses should be passed using the KEYS array, and KEYS should not be in expression.
问题解决:Redis集群,在调用lua脚本的时候,key的位置必须是数组(不能使用Lua变量替换KEYS数组),否则直接返回错误信息。所以需要对lua脚本进行改正,去掉自定义的变量local,直接使用传入的KEYS数组。
参考链接:https://blog.csdn.net/qq_33996921/article/details/107204362
报错内容:ERR bad lua script for redis cluster, all the keys that the script uses should be passed using the KEYS array, and KEYS should not be in expression. 问题解决:Redis集群,在调用lua脚本的时候,key的位置必须是数组(不能使用Lua变量替换KEYS数组),否则直接返回错误信息。所以需要对lua脚本进行改正,去掉自定义的变量local,直接使用传入的KEYS数组。 参考链接:https://blog.csdn.net/qq_33996921/article/details/107204362