public interface FunctionBinaryCommands
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
fcall(byte[] name,
java.util.List<byte[]> keys,
java.util.List<byte[]> args)
Invoke a function.
|
java.lang.Object |
fcallReadonly(byte[] name,
java.util.List<byte[]> keys,
java.util.List<byte[]> args) |
java.lang.String |
functionDelete(byte[] libraryName)
This command deletes the library called library-name and all functions in it.
|
byte[] |
functionDump()
Return the serialized payload of loaded libraries.
|
java.lang.String |
functionFlush()
Deletes all the libraries, unless called with the optional mode argument, the
'lazyfree-lazy-user-flush' configuration directive sets the effective behavior.
|
java.lang.String |
functionFlush(FlushMode mode)
Deletes all the libraries, unless called with the optional mode argument, the
'lazyfree-lazy-user-flush' configuration directive sets the effective behavior.
|
java.lang.String |
functionKill()
Kill a function that is currently executing.
|
java.util.List<java.lang.Object> |
functionList(byte[] libraryNamePattern)
Return information about the functions and libraries.
|
java.util.List<java.lang.Object> |
functionListBinary()
Return information about the functions and libraries.
|
java.util.List<java.lang.Object> |
functionListWithCode(byte[] libraryNamePattern)
Similar to
FUNCTION LIST but include the
libraries source implementation in the reply. |
java.util.List<java.lang.Object> |
functionListWithCodeBinary()
Similar to
FUNCTION LIST but include the
libraries source implementation in the reply. |
java.lang.String |
functionLoad(byte[] functionCode)
Load a library to Redis.
|
java.lang.String |
functionLoadReplace(byte[] functionCode)
Load a library to Redis.
|
java.lang.String |
functionRestore(byte[] serializedValue)
Restore libraries from the serialized payload.
|
java.lang.String |
functionRestore(byte[] serializedValue,
FunctionRestorePolicy policy)
Restore libraries from the serialized payload.
|
java.lang.Object |
functionStatsBinary()
Return information about the function that's currently running and information
about the available execution engines.
|
java.lang.Object fcall(byte[] name,
java.util.List<byte[]> keys,
java.util.List<byte[]> args)
name - keys - args - java.lang.Object fcallReadonly(byte[] name,
java.util.List<byte[]> keys,
java.util.List<byte[]> args)
java.lang.String functionDelete(byte[] libraryName)
libraryName - byte[] functionDump()
FUNCTION RESTORE command.java.lang.String functionFlush()
java.lang.String functionFlush(FlushMode mode)
mode - ASYNC: Asynchronously flush the libraries, SYNC: Synchronously flush the libraries.java.lang.String functionKill()
java.util.List<java.lang.Object> functionListBinary()
LibraryInfojava.util.List<java.lang.Object> functionList(byte[] libraryNamePattern)
libraryNamePattern - a pattern for matching library namesLibraryInfojava.util.List<java.lang.Object> functionListWithCodeBinary()
FUNCTION LIST but include the
libraries source implementation in the reply.LibraryInfoFunctionCommands.functionList()java.util.List<java.lang.Object> functionListWithCode(byte[] libraryNamePattern)
FUNCTION LIST but include the
libraries source implementation in the reply.libraryNamePattern - a pattern for matching library namesLibraryInfofunctionList(byte[])java.lang.String functionLoad(byte[] functionCode)
The library payload must start with Shebang statement that provides a metadata about the
library (like the engine to use and the library name). Shebang format:
#!<engine name> name=<library name>. Currently engine name must be lua.
functionCode - the source code.java.lang.String functionLoadReplace(byte[] functionCode)
functionCode - the source codejava.lang.String functionRestore(byte[] serializedValue)
serializedValue - the serialized payloadjava.lang.String functionRestore(byte[] serializedValue,
FunctionRestorePolicy policy)
serializedValue - the serialized payloadpolicy - can be FLUSH, APPEND or REPLACEjava.lang.Object functionStatsBinary()
FunctionStatsCopyright © 2025. All rights reserved.