public interface ScriptingKeyCommands
Modifier and Type | Method and Description |
---|---|
Object |
eval(String script)
Eval Command
Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.
|
Object |
eval(String script,
int keyCount,
String... params)
Eval Command
Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.
|
Object |
eval(String script,
List<String> keys,
List<String> args)
Eval Command
Use to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.
|
Object |
evalReadonly(String script,
List<String> keys,
List<String> args)
Readonly version of
EVAL |
Object |
evalsha(String sha1)
EvalSha Command
Similar to
EVAL , but the script cached on the server
side by its SHA1 digest. |
Object |
evalsha(String sha1,
int keyCount,
String... params)
EvalSha Command
Similar to
eval(String, int, String...) EVAL}, but the script cached on the server
side by its SHA1 digest. |
Object |
evalsha(String sha1,
List<String> keys,
List<String> args)
EvalSha Command
Similar to
eval(String, List, List) EVAL}, but the script cached on the server
side by its SHA1 digest. |
Object |
evalshaReadonly(String sha1,
List<String> keys,
List<String> args)
Readonly version of
EVAL |
Object eval(String script)
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.Object eval(String script, int keyCount, String... params)
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 scriptObject eval(String script, List<String> keys, List<String> args)
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 scriptObject evalReadonly(String script, List<String> keys, List<String> args)
EVAL
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 scripteval(String, List, List)
Object evalsha(String sha1)
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.sha1
- the scripteval(String)
Object evalsha(String sha1, int keyCount, String... params)
eval(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.sha1
- the scripteval(String, int, String...)
Object evalsha(String sha1, List<String> keys, List<String> args)
eval(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.sha1
- the scripteval(String, List, List)
Copyright © 2022. All rights reserved.