K - Key type.V - Value type.public interface NodeSelectionScriptingAsyncCommands<K,V>
Lua scripts are encoded by using the configured
charset.| Modifier and Type | Method and Description |
|---|---|
<T> AsyncExecutions<T> |
eval(byte[] script,
ScriptOutputType type,
K... keys)
Execute a Lua script server side.
|
<T> AsyncExecutions<T> |
eval(byte[] script,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> AsyncExecutions<T> |
eval(String script,
ScriptOutputType type,
K... keys)
Execute a Lua script server side.
|
<T> AsyncExecutions<T> |
eval(String script,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> AsyncExecutions<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> AsyncExecutions<T> |
evalsha(String digest,
ScriptOutputType type,
K... keys)
Evaluates a script cached on the server side by its SHA1 digest.
|
<T> AsyncExecutions<T> |
evalsha(String digest,
ScriptOutputType type,
K[] keys,
V... values)
Execute a Lua script server side.
|
<T> AsyncExecutions<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.
|
AsyncExecutions<List<Boolean>> |
scriptExists(String... digests)
Check existence of scripts in the script cache.
|
AsyncExecutions<String> |
scriptFlush()
Remove all the scripts from the script cache.
|
AsyncExecutions<String> |
scriptFlush(FlushMode flushMode)
Remove all the scripts from the script cache using the specified
FlushMode. |
AsyncExecutions<String> |
scriptKill()
Kill the script currently in execution.
|
AsyncExecutions<String> |
scriptLoad(byte[] script)
Load the specified Lua script into the script cache.
|
AsyncExecutions<String> |
scriptLoad(String script)
Load the specified Lua script into the script cache.
|
<T> AsyncExecutions<T> eval(String script, ScriptOutputType type, K... keys)
T - expected return type.script - Lua 5.1 script.type - output type.keys - key names.<T> AsyncExecutions<T> eval(byte[] script, ScriptOutputType type, K... keys)
T - expected return type.script - Lua 5.1 script.type - output type.keys - key names.<T> AsyncExecutions<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> AsyncExecutions<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> AsyncExecutions<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> AsyncExecutions<T> evalsha(String digest, ScriptOutputType type, K... keys)
T - expected return type.digest - SHA1 of the script.type - the type.keys - the keys.<T> AsyncExecutions<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> AsyncExecutions<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.AsyncExecutions<List<Boolean>> scriptExists(String... digests)
digests - script digests.AsyncExecutions<String> scriptFlush()
AsyncExecutions<String> scriptFlush(FlushMode flushMode)
FlushMode.flushMode - the flush mode (sync/async).AsyncExecutions<String> scriptKill()
AsyncExecutions<String> scriptLoad(String script)
script - script content.AsyncExecutions<String> scriptLoad(byte[] script)
script - script content.Copyright © 2024 lettuce.io. All rights reserved.