public interface FunctionBinaryCommands
Modifier and Type | Method and Description |
---|---|
Object |
fcall(byte[] name,
List<byte[]> keys,
List<byte[]> args)
Invoke a function.
|
Object |
fcallReadonly(byte[] name,
List<byte[]> keys,
List<byte[]> args) |
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.
|
String |
functionFlush()
Deletes all the libraries, unless called with the optional mode argument, the
'lazyfree-lazy-user-flush' configuration directive sets the effective behavior.
|
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.
|
String |
functionKill()
Kill a function that is currently executing.
|
List<Object> |
functionList(byte[] libraryNamePattern)
Return information about the functions and libraries.
|
List<Object> |
functionListBinary()
Return information about the functions and libraries.
|
List<Object> |
functionListWithCode(byte[] libraryNamePattern)
Similar to
FUNCTION LIST but include the
libraries source implementation in the reply. |
List<Object> |
functionListWithCodeBinary()
Similar to
FUNCTION LIST but include the
libraries source implementation in the reply. |
String |
functionLoad(byte[] functionCode)
Load a library to Redis.
|
String |
functionLoadReplace(byte[] functionCode)
Load a library to Redis.
|
String |
functionRestore(byte[] serializedValue)
Restore libraries from the serialized payload.
|
String |
functionRestore(byte[] serializedValue,
FunctionRestorePolicy policy)
Restore libraries from the serialized payload.
|
Object |
functionStatsBinary()
Return information about the function that's currently running and information
about the available execution engines.
|
Object fcall(byte[] name, List<byte[]> keys, List<byte[]> args)
name
- keys
- args
- String functionDelete(byte[] libraryName)
libraryName
- byte[] functionDump()
FUNCTION RESTORE
command.String functionFlush()
String functionFlush(FlushMode mode)
mode
- ASYNC: Asynchronously flush the libraries, SYNC: Synchronously flush the libraries.String functionKill()
List<Object> functionListBinary()
LibraryInfo
List<Object> functionList(byte[] libraryNamePattern)
libraryNamePattern
- a pattern for matching library namesLibraryInfo
List<Object> functionListWithCodeBinary()
FUNCTION LIST
but include the
libraries source implementation in the reply.LibraryInfo
FunctionCommands.functionList()
List<Object> functionListWithCode(byte[] libraryNamePattern)
FUNCTION LIST
but include the
libraries source implementation in the reply.libraryNamePattern
- a pattern for matching library namesLibraryInfo
functionList(byte[])
String functionLoad(byte[] functionCode)
functionCode
- the source code. 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: #!String functionLoadReplace(byte[] functionCode)
functionCode
- the source codeString functionRestore(byte[] serializedValue)
serializedValue
- the serialized payloadString functionRestore(byte[] serializedValue, FunctionRestorePolicy policy)
serializedValue
- the serialized payloadpolicy
- can be FLUSH, APPEND or REPLACE
Object functionStatsBinary()
FunctionStats
Copyright © 2022. All rights reserved.