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