What's new in Valkey 9.0? Discover new features and improvements. Read the announcement.

MODULE LOADEX

Loads a module using extended parameters.

Usage
MODULE LOADEX path [CONFIG configs ...] [ARGS args ...]
Complexity
O(1)
Since
7.0.0
ACL Categories
@admin, @dangerous, @slow
Command flags
NO_ASYNC_LOADING, ADMIN, NOSCRIPT, PROTECTED

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 Valkey 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.

Note: modules can also be loaded at server startup with loadmodule configuration directive in valkey.conf.

Replies

RESP2

Simple string reply: OK if the module was loaded.

RESP3

Simple string reply: OK if the module was loaded.