MODULE-LOADEX(3valkey)

πŸ“¦
version 9.0.6 Β· 2 versions
, in fedora 44

πŸ’– MODULE-LOADEX πŸ’–

okay bestie, so this one is the MODULE LOADEX page from the Valkey Command Manual, and it's literally the glow-up version of plain old MODULE LOAD. Buckle up, we're loading dynamic libraries at runtime and we're being cute about it. πŸŽ€


✨ NAME ✨

module-loadex β€” loads a module using extended parameters. that's it, that's the girl. πŸ’…


🌸 SYNOPSIS 🌸

MODULE LOADEX path [CONFIG name value [CONFIG name value ...]]  [ARGS
args [args...]]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea πŸ“: this command loads a module from a dynamic library at runtime, and it lets you hand that module configuration directives while you do it. it's giving "arriving in style".

It's the extended version of the MODULE LOAD command. think of it as the same command but with extra sparkle. ✨

It loads and initializes the Valkey module from the dynamic library that you point at with the path argument. Important detail, no cap: path should be the absolute path of the library, including the full filename. don't be out here with half a path, she needs the whole thing. 🫢

You can use the optional CONFIG argument to provide the module with configuration directives. And any extra arguments that follow the ARGS keyword? Those get passed unmodified straight to the module. no meddling from us, we just deliver. πŸ“¦

πŸ’‘ note, bestie: modules can ALSO be loaded at server startup using the loadmodule configuration directive in valkey.conf. so you got options, iykyk.

πŸ’Œ REPLY πŸ’Œ

valkey-protocol(7) Simple string reply: OK if the module was loaded. simple. iconic. OK and we move on. πŸ‘‘


⚑ COMPLEXITY ⚑

O(1) β€” constant time, she's fast fr fr. πŸ”₯


πŸ” ACL CATEGORIES πŸ”

  • @admin
  • @dangerous
  • @slow

πŸ“œ HISTORY πŸ“œ

  • Available since: 7.0.0

πŸ‘€ SEE ALSO πŸ‘€

like, go read these too, they're all part of the same friend group:


and that's the whole page, bestie!! πŸŽ€βœ¨ this cutie was served up by version 9.0.0, dated 2025-10-21, and it lives in the MODULE-LOADEX(3valkey) manual. go load something iconic. πŸ’–πŸ¦‹πŸ‘‘

πŸ“¦ where this page comes from