模块加载

Syntax
MODULE LOAD path [arg [arg ...]]
Available since:
4.0.0
Time complexity:
O(1)
ACL categories:
@admin, @slow, @dangerous,

在运行时从动态库加载模块。

此命令从由path参数指定的动态库加载并初始化Redis模块。path应为库的绝对路径,包括完整的文件名。任何额外的参数都会原封不动地传递给模块。

注意: 模块也可以在服务器启动时通过redis.conf中的loadmodule配置指令加载。

RESP2/RESP3 回复

Simple string reply: OK if the module was loaded.
RATE THIS PAGE
Back to top ↑