基本语法
redis 127.0.0.1:6379> EVAL script numkeys key [key ...] arg [arg ...]
举例
redis 127.0.0.1:6379> EVAL "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second 1) "key1" 2) "key2" 3) "first" 4) "second"
基本语法
redis 127.0.0.1:6379> EVAL script numkeys key [key ...] arg [arg ...]
举例
redis 127.0.0.1:6379> EVAL "return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}" 2 key1 key2 first second 1) "key1" 2) "key2" 3) "first" 4) "second"