
redis.clients.jedis.commands.FunctionBinaryCommands Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis Show documentation
Show all versions of jedis Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.commands;
import redis.clients.jedis.args.FlushMode;
import redis.clients.jedis.args.FunctionRestorePolicy;
import redis.clients.jedis.resps.FunctionStats;
import redis.clients.jedis.resps.LibraryInfo;
import java.util.List;
public interface FunctionBinaryCommands {
/**
* Invoke a function.
* @param name
* @param keys
* @param args
* @return value depends on the function that was executed
*/
Object fcall(byte[] name, List keys, List args);
Object fcallReadonly(byte[] name, List keys, List args);
/**
* This command deletes the library called library-name and all functions in it.
* If the library doesn't exist, the server returns an error.
* @param libraryName
* @return OK
*/
String functionDelete(byte[] libraryName);
/**
* Return the serialized payload of loaded libraries. You can restore the
* serialized payload later with the {@link FunctionBinaryCommands#functionRestore(byte[], FunctionRestorePolicy) FUNCTION RESTORE} command.
* @return the serialized payload
*/
byte[] functionDump();
/**
* Deletes all the libraries, unless called with the optional mode argument, the
* 'lazyfree-lazy-user-flush' configuration directive sets the effective behavior.
* @return OK
*/
String functionFlush();
/**
* Deletes all the libraries, unless called with the optional mode argument, the
* 'lazyfree-lazy-user-flush' configuration directive sets the effective behavior.
* @param mode ASYNC: Asynchronously flush the libraries, SYNC: Synchronously flush the libraries.
* @return OK
*/
String functionFlush(FlushMode mode);
/**
* Kill a function that is currently executing. The command can be used only on functions
* that did not modify the dataset during their execution.
* @return OK
*/
String functionKill();
/**
* Return information about the functions and libraries.
* @return {@link LibraryInfo}
*/
List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy