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