redisConnect()
redisEval("return redis.call('set','foo','bar')")
# Supply a key argument to the script
redisEval("return redis.call('set',KEYS[1],'bar')", "foo")
# Supply a key and other arguments to the script
redisEval("return redis.call('set',KEYS[1],ARGV[1])", "foo", pi)
Run the code above in your browser using DataLab