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