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