public interface ModuleCommands
Modifier and Type | Method and Description |
---|---|
java.util.List<Module> |
moduleList()
Return information about the modules loaded to the server.
|
java.lang.String |
moduleLoad(java.lang.String path)
Load and initialize the Redis module from the dynamic library specified by the path argument.
|
java.lang.String |
moduleLoad(java.lang.String path,
java.lang.String... args)
Load and initialize the Redis module from the dynamic library specified by the path argument.
|
java.lang.String |
moduleLoadEx(java.lang.String path,
ModuleLoadExParams params)
Loads a module from a dynamic library at runtime with configuration directives.
|
java.lang.String |
moduleUnload(java.lang.String name)
Unload the module specified by name.
|
java.lang.String moduleLoad(java.lang.String path)
path
- should be the absolute path of the library, including the full filenamejava.lang.String moduleLoad(java.lang.String path, java.lang.String... args)
path
- should be the absolute path of the library, including the full filenameargs
- additional arguments are passed unmodified to the modulejava.lang.String moduleLoadEx(java.lang.String path, ModuleLoadExParams params)
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.
path
- should be the absolute path of the library, including the full filenameparams
- as in descriptionjava.lang.String moduleUnload(java.lang.String name)
MODULE LIST
command, and may differ from the dynamic
library's filename.name
- Copyright © 2023. All rights reserved.