K
- Key type.V
- Value type.public interface NodeSelectionScriptingCommands<K,V>
Lua scripts
are encoded by using the configured
charset
.Modifier and Type | Method and Description |
---|---|
<T> Executions<T> |
eval(byte[] script,
ScriptOutputType type,
K... keys)
Execute a Lua script server side.
|
<T> Executions<T> |
eval(byte[] script,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> Executions<T> |
eval(String script,
ScriptOutputType type,
K... keys)
Execute a Lua script server side.
|
<T> Executions<T> |
eval(String script,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> Executions<T> |
evalReadOnly(byte[] script,
ScriptOutputType type,
K[] keys,
V... values)
This is a read-only variant of the EVAL command that cannot execute commands that modify data.
|
<T> Executions<T> |
evalsha(String digest,
ScriptOutputType type,
K... keys)
Evaluates a script cached on the server side by its SHA1 digest.
|
<T> Executions<T> |
evalsha(String digest,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> Executions<T> |
evalshaReadOnly(String digest,
ScriptOutputType type,
K[] keys,
V... values)
This is a read-only variant of the EVALSHA command that cannot execute commands that modify data.
|
Executions<List<Boolean>> |
scriptExists(String... digests)
Check existence of scripts in the script cache.
|
Executions<String> |
scriptFlush()
Remove all the scripts from the script cache.
|
Executions<String> |
scriptFlush(FlushMode flushMode)
Remove all the scripts from the script cache using the specified
FlushMode . |
Executions<String> |
scriptKill()
Kill the script currently in execution.
|
Executions<String> |
scriptLoad(byte[] script)
Load the specified Lua script into the script cache.
|
Executions<String> |
scriptLoad(String script)
Load the specified Lua script into the script cache.
|
<T> Executions<T> eval(String script, ScriptOutputType type, K... keys)
T
- expected return type.script
- Lua 5.1 script.type
- output type.keys
- key names.<T> Executions<T> eval(byte[] script, ScriptOutputType type, K... keys)
T
- expected return type.script
- Lua 5.1 script.type
- output type.keys
- key names.<T> Executions<T> eval(String script, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.<T> Executions<T> eval(byte[] script, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.<T> Executions<T> evalReadOnly(byte[] script, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.script
- Lua 5.1 script.type
- the type.keys
- the keys.values
- the values.<T> Executions<T> evalsha(String digest, ScriptOutputType type, K... keys)
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.<T> Executions<T> evalsha(String digest, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.values
- the values.<T> Executions<T> evalshaReadOnly(String digest, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.digest
- SHA1 of the script.type
- the type.keys
- the keys.values
- the values.Executions<List<Boolean>> scriptExists(String... digests)
digests
- script digests.Executions<String> scriptFlush()
Executions<String> scriptFlush(FlushMode flushMode)
FlushMode
.flushMode
- the flush mode (sync/async).Executions<String> scriptKill()
Executions<String> scriptLoad(String script)
script
- script content.Executions<String> scriptLoad(byte[] script)
script
- script content.Copyright © 2023 lettuce.io. All rights reserved.