Package redis.clients.jedis.commands
Interface ScriptingKeyCommands
- All Known Subinterfaces:
JedisCommands
- All Known Implementing Classes:
Jedis,JedisCluster,JedisPooled,JedisSentineled,JedisSharding,UnifiedJedis
public interface ScriptingKeyCommands
-
Method Summary
Modifier and TypeMethodDescriptionEval Command Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.Eval Command Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.Eval Command Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.Readonly version ofEVALEvalSha Command Similar toEVAL, but the script cached on the server side by its SHA1 digest.EvalSha Command Similar toeval(String, int, String...)EVAL}, but the script cached on the server side by its SHA1 digest.EvalSha Command Similar toeval(String, List, List)EVAL}, but the script cached on the server side by its SHA1 digest.Readonly version ofEVAL
-
Method Details
-
eval
Eval Command Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.- Parameters:
script- Lua 5.1 script. The script does not need to define a Lua function (and should not). It is just a Lua program that will run in the context of the Redis server.- Returns:
- The result of the evaluated script
-
eval
Eval Command Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.- Parameters:
script- Lua 5.1 script. The script does not need to define a Lua function (and should not). It is just a Lua program that will run in the context of the Redis server.keyCount- the count of the provided keysparams- arguments that can be accessed from the script- Returns:
- The result of the evaluated script
-
eval
Eval Command Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.- Parameters:
script- Lua 5.1 script. The script does not need to define a Lua function (and should not). It is just a Lua program that will run in the context of the Redis server.keys- arguments that can be accessed by the scriptargs- additional arguments should not represent key names and can be accessed by the script- Returns:
- The result of the evaluated script
-
evalReadonly
Readonly version ofEVAL- Parameters:
script- Lua 5.1 script. The script does not need to define a Lua function (and should not). It is just a Lua program that will run in the context of the Redis server.keys- arguments that can be accessed by the scriptargs- additional arguments should not represent key names and can be accessed by the script- Returns:
- The result of the evaluated script
- See Also:
-
evalsha
EvalSha Command Similar toEVAL, but the script cached on the server side by its SHA1 digest. Scripts are cached on the server side using the SCRIPT LOAD command.- Parameters:
sha1- the script- Returns:
- The result of the evaluated script
- See Also:
-
evalsha
EvalSha Command Similar toeval(String, int, String...)EVAL}, but the script cached on the server side by its SHA1 digest. Scripts are cached on the server side using the SCRIPT LOAD command.- Parameters:
sha1- the script- Returns:
- The result of the evaluated script
- See Also:
-
evalsha
EvalSha Command Similar toeval(String, List, List)EVAL}, but the script cached on the server side by its SHA1 digest. Scripts are cached on the server side using the SCRIPT LOAD command.- Parameters:
sha1- the script- Returns:
- The result of the evaluated script
- See Also:
-
evalshaReadonly
Readonly version ofEVAL- Parameters:
sha1- the script- Returns:
- The result of the evaluated script
- See Also:
-