Load a function library into the server.
Section: Lua scripts and functions
Load a Redis function library
bash
bash
FUNCTION LOAD "#!lua name=mylib\nredis.register_function('ping', function() return 'pong' end)"Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Lua scripts and functions