Package redis.clients.jedis.commands
Interface ModuleCommands
- All Known Implementing Classes:
Jedis
public interface ModuleCommands
-
Method Summary
Modifier and TypeMethodDescriptionReturn information about the modules loaded to the server.moduleLoad(String path) Load and initialize the Redis module from the dynamic library specified by the path argument.moduleLoad(String path, String... args) Load and initialize the Redis module from the dynamic library specified by the path argument.moduleLoadEx(String path, ModuleLoadExParams params) Loads a module from a dynamic library at runtime with configuration directives.moduleUnload(String name) Unload the module specified by name.
-
Method Details
-
moduleLoad
Load and initialize the Redis module from the dynamic library specified by the path argument.- Parameters:
path- should be the absolute path of the library, including the full filename- Returns:
- OK
-
moduleLoad
Load and initialize the Redis module from the dynamic library specified by the path argument.- Parameters:
path- should be the absolute path of the library, including the full filenameargs- additional arguments are passed unmodified to the module- Returns:
- OK
-
moduleLoadEx
Loads a module from a dynamic library at runtime with configuration directives.This is an extended version of the MODULE LOAD command.
It loads and initializes the Redis module from the dynamic library specified by the path argument. The path should be the absolute path of the library, including the full filename.
You can use the optional CONFIG argument to provide the module with configuration directives. Any additional arguments that follow the ARGS keyword are passed unmodified to the module.
- Parameters:
path- should be the absolute path of the library, including the full filenameparams- as in description- Returns:
- OK
-
moduleUnload
Unload the module specified by name. Note that the module's name is reported by theMODULE LISTcommand, and may differ from the dynamic library's filename.- Parameters:
name-- Returns:
- OK
-
moduleList
Return information about the modules loaded to the server.- Returns:
- list of
Module
-