K - The type of keys that may be passed during script executionpublic interface ReactiveScriptExecutor<K>
RedisScripts using reactive infrastructure.| Modifier and Type | Method and Description |
|---|---|
default <T> reactor.core.publisher.Flux<T> |
execute(RedisScript<T> script)
Execute the given
RedisScript |
default <T> reactor.core.publisher.Flux<T> |
execute(RedisScript<T> script,
List<K> keys)
Execute the given
RedisScript |
<T> reactor.core.publisher.Flux<T> |
execute(RedisScript<T> script,
List<K> keys,
List<?> args)
Executes the given
RedisScript |
<T> reactor.core.publisher.Flux<T> |
execute(RedisScript<T> script,
List<K> keys,
List<?> args,
RedisElementWriter<?> argsWriter,
RedisElementReader<T> resultReader)
Executes the given
RedisScript, using the provided RedisSerializers to serialize the script
arguments and result. |
default <T> reactor.core.publisher.Flux<T> execute(RedisScript<T> script)
RedisScriptscript - must not be null.Flux.empty() if RedisScript.getResultType() is
null, likely indicating a throw-away status reply (i.e. "OK")default <T> reactor.core.publisher.Flux<T> execute(RedisScript<T> script, List<K> keys)
RedisScriptscript - must not be null.keys - must not be null.Flux.empty() if RedisScript.getResultType() is
null, likely indicating a throw-away status reply (i.e. "OK")<T> reactor.core.publisher.Flux<T> execute(RedisScript<T> script, List<K> keys, List<?> args)
RedisScriptscript - The script to execute. Must not be null.keys - Any keys that need to be passed to the script. Must not be null.args - Any args that need to be passed to the script. Can be empty.Flux.empty() if RedisScript.getResultType() is
null, likely indicating a throw-away status reply (i.e. "OK")<T> reactor.core.publisher.Flux<T> execute(RedisScript<T> script, List<K> keys, List<?> args, RedisElementWriter<?> argsWriter, RedisElementReader<T> resultReader)
RedisScript, using the provided RedisSerializers to serialize the script
arguments and result.script - The script to execute. must not be null.keys - Any keys that need to be passed to the scriptargs - Any args that need to be passed to the scriptargsWriter - The RedisElementWriter to use for serializing args. Must not be null.resultReader - The RedisElementReader to use for serializing the script return value. Must not be
null.Flux.empty() if RedisScript.getResultType() is
null, likely indicating a throw-away status reply (i.e. "OK")Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.