K
- Key type.V
- Value type.public interface NodeSelectionFunctionCommands<K,V>
Function code
is encoded by
using the configured charset
.Modifier and Type | Method and Description |
---|---|
<T> Executions<T> |
fcall(String function,
ScriptOutputType type,
K... keys)
Invoke a function.
|
<T> Executions<T> |
fcall(String function,
ScriptOutputType type,
K[] keys,
V... values)
Invoke a function.
|
<T> Executions<T> |
fcallReadOnly(String function,
ScriptOutputType type,
K... keys)
Invoke a function in read-only mode.
|
<T> Executions<T> |
fcallReadOnly(String function,
ScriptOutputType type,
K[] keys,
V... values)
Invoke a function in read-only mode.
|
Executions<byte[]> |
functionDump()
Return the serialized payload of loaded libraries.
|
Executions<String> |
functionFlush(FlushMode flushMode)
Deletes all the libraries using the specified
FlushMode . |
Executions<String> |
functionKill()
Kill a function that is currently executing.
|
Executions<List<Map<String,Object>>> |
functionList()
Return information about the functions and libraries.
|
Executions<List<Map<String,Object>>> |
functionList(String libraryName)
Return information about the functions and libraries.
|
Executions<String> |
functionLoad(String functionCode)
Load a library to Redis.
|
Executions<String> |
functionLoad(String functionCode,
boolean replace)
Load a library to Redis.
|
Executions<String> |
functionRestore(byte[] dump)
You can restore the dumped payload of loaded libraries.
|
Executions<String> |
functionRestore(byte[] dump,
FunctionRestoreMode mode)
You can restore the dumped payload of loaded libraries.
|
<T> Executions<T> fcall(String function, ScriptOutputType type, K... keys)
T
- expected return type.function
- the function name.type
- output type.keys
- key names.<T> Executions<T> fcall(String function, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.function
- the function name.type
- output type.keys
- the keys.values
- the values (arguments).<T> Executions<T> fcallReadOnly(String function, ScriptOutputType type, K... keys)
T
- expected return type.function
- the function name.type
- output type.keys
- key names.<T> Executions<T> fcallReadOnly(String function, ScriptOutputType type, K[] keys, V... values)
T
- expected return type.function
- the function name.type
- output type.keys
- the keys.values
- the values (arguments).Executions<String> functionLoad(String functionCode)
functionCode
- code of the function.Executions<String> functionLoad(String functionCode, boolean replace)
functionCode
- code of the function.replace
- whether to replace an existing function.Executions<byte[]> functionDump()
functionRestore(byte[])
.Executions<String> functionRestore(byte[] dump)
Executions<String> functionRestore(byte[] dump, FunctionRestoreMode mode)
Executions<String> functionFlush(FlushMode flushMode)
FlushMode
.flushMode
- the flush mode (sync/async).Executions<String> functionKill()
Executions<List<Map<String,Object>>> functionList()
Copyright © 2023 lettuce.io. All rights reserved.