Interface ReactiveScriptingCommands
- All Known Subinterfaces:
ReactiveClusterScriptingCommands
public interface ReactiveScriptingCommands
Redis Scripting commands executed using reactive infrastructure.
- Since:
- 2.0
- Author:
- Mark Paluch, Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescription<T> Flux<T> eval(ByteBuffer script, ReturnType returnType, int numKeys, ByteBuffer... keysAndArgs) Evaluate givenscript.<T> Flux<T> evalSha(String scriptSha, ReturnType returnType, int numKeys, ByteBuffer... keysAndArgs) Evaluate givenscriptSha.scriptExists(String scriptSha) Check if givenscriptShaexist in script cache.scriptExists(List<String> scriptShas) Check if givenscriptShasexist in script cache.Flush lua script cache.Kill current lua script execution.scriptLoad(ByteBuffer script) Load lua script into scripts cache, without executing it.
Execute the script by callingevalSha(String, ReturnType, int, ByteBuffer...).
-
Method Details
-
scriptFlush
-
scriptKill
-
scriptLoad
Load lua script into scripts cache, without executing it.
Execute the script by callingevalSha(String, ReturnType, int, ByteBuffer...).- Parameters:
script- must not be null.- Returns:
- never null.
- See Also:
-
scriptExists
-
scriptExists
-
eval
Evaluate givenscript.- Parameters:
script- must not be null.returnType- must not be null. UsingReturnType.MULTIemits aListas-is instead of emitting the individual elements from the array response.numKeys-keysAndArgs- must not be null.- Returns:
- never null.
- See Also:
-
evalSha
<T> Flux<T> evalSha(String scriptSha, ReturnType returnType, int numKeys, ByteBuffer... keysAndArgs) Evaluate givenscriptSha.- Parameters:
scriptSha- must not be null.returnType- must not be null. UsingReturnType.MULTIemits aListas-is instead of emitting the individual elements from the array response.numKeys-keysAndArgs- must not be null.- Returns:
- never null.
- See Also:
-