Redis集群版本,且使用代理模式访问实例,执行lua脚本:
eval ” for i=1, #KEYS do redis.call(‘set’,KEYS[i],ARGV[1]) redis.call(‘expire’, KEYS[i], tonumber(ARGV[1])) end return ‘succ’ ” 2 {wt:bb20000002}:30008:2022-10-10 {wt:bb20000002}:30008:2022-10-10 500
报错【error) 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】