1 Response r = eval("return redis.call('set','lua','LUA_AGAIN')"); 2 r.value == "LUA_AGAIN"; 3 4 Response r1 = redis.eval("return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}", ["key1", "key2"], ["first", "second"]); 5 writeln(r1); // [key1, key2, first, second] 6 7 Response r1 = redis.eval("return {KEYS[1],KEYS[2],ARGV[1],ARGV[2]}", [1, 2]); 8 writeln(r1); // [1, 2]
Simplified call to EVAL