Evaluate a Lua script in the Redis server.
Evaluate a Lua script in the Redis server.
redisEval(script, keys = vector("list",0), SHA = FALSE, ...)
script |
A Redis server-side Lua script (character). |
keys |
An optional list of script key arguments. |
SHA |
If TRUE, the script is a SHA1-encoded string, otherwise plan text. |
... |
Optional list of script arguments. |
"OK" is returned on success. Errors are displayed if the script fails.
B. W. Lewis
http://redis.io/commands
## Not run: 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) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.