LUA 支持
LUA 脚本放开限制,标准版-双节点、标准版-单节点支持用户直接调用。
集群版本条件性支持:
-
所有 key 都应该由 KEYS 数组来传递,redis.call/pcall 里面调用的 redis命令,key 的位置必须是 KEYS array, 否则直接返回 error。
"-ERR bad lua script for redis cluster, all the keys that the script uses should be passed using the KEYS array\r\n"`
-
所有 key必须在1个 slot 上,否则直接返回 error。
"-ERR eval/evalsha command keys must in same slot\r\n"
-
调用必须要带有key,否则直接返回error。
"-ERR for redis cluster, eval/evalsha number of keys can't be negative or zero\r\n"