public interface ReactiveScriptingCommands
Modifier and Type | Method and Description |
---|---|
<T> reactor.core.publisher.Flux<T> |
eval(ByteBuffer script,
ReturnType returnType,
int numKeys,
ByteBuffer... keysAndArgs)
Evaluate given
script . |
<T> reactor.core.publisher.Flux<T> |
evalSha(String scriptSha,
ReturnType returnType,
int numKeys,
ByteBuffer... keysAndArgs)
Evaluate given
scriptSha . |
reactor.core.publisher.Flux<Boolean> |
scriptExists(List<String> scriptShas)
Check if given
scriptShas exist in script cache. |
default reactor.core.publisher.Mono<Boolean> |
scriptExists(String scriptSha)
Check if given
scriptSha exist in script cache. |
reactor.core.publisher.Mono<String> |
scriptFlush()
Flush lua script cache.
|
reactor.core.publisher.Mono<String> |
scriptKill()
Kill current lua script execution.
|
reactor.core.publisher.Mono<String> |
scriptLoad(ByteBuffer script)
Load lua script into scripts cache, without executing it.
|
reactor.core.publisher.Mono<String> scriptFlush()
reactor.core.publisher.Mono<String> scriptKill()
reactor.core.publisher.Mono<String> scriptLoad(ByteBuffer script)
evalSha(String, ReturnType, int, ByteBuffer...)
.script
- must not be null.default reactor.core.publisher.Mono<Boolean> scriptExists(String scriptSha)
scriptSha
exist in script cache.scriptSha
- The sha1 of the script is present in script cache. Must not be null.Mono
indicating if script is present.reactor.core.publisher.Flux<Boolean> scriptExists(List<String> scriptShas)
scriptShas
exist in script cache.scriptShas
- must not be null.Flux
emitting one entry per scriptSha in given List
.<T> reactor.core.publisher.Flux<T> eval(ByteBuffer script, ReturnType returnType, int numKeys, ByteBuffer... keysAndArgs)
script
.script
- must not be null.returnType
- must not be null. Using ReturnType.MULTI
emits a List
as-is instead of
emitting the individual elements from the array response.numKeys
- keysAndArgs
- must not be null.<T> reactor.core.publisher.Flux<T> evalSha(String scriptSha, ReturnType returnType, int numKeys, ByteBuffer... keysAndArgs)
scriptSha
.scriptSha
- must not be null.returnType
- must not be null. Using ReturnType.MULTI
emits a List
as-is instead of
emitting the individual elements from the array response.numKeys
- keysAndArgs
- must not be null.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.