Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redis 集群模式下报错: #170

Open
AltonHuo opened this issue Mar 28, 2024 · 0 comments
Open

Redis 集群模式下报错: #170

AltonHuo opened this issue Mar 28, 2024 · 0 comments

Comments

@AltonHuo
Copy link

报错内容: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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant