Description Usage Arguments Value Author(s) References Examples
Evaluate a Lua script in the Redis server.
1 |
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
1 2 3 4 5 6 7 8 9 10 11 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.