Redis functions act as a superset of Lua scripts. Instead of sending the script content with every request (likeDocumentation Index
Fetch the complete documentation index at: https://upstash.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
EVAL), you load the script once as a
“library” and call the functions it registers.
Currently,
LUA is the only supported engine.#!lua name=<library_name> shebang.
Inside the script, use redis.register_function to expose your functions.
The registered functions can be called with the FCALL command.
Arguments
The load options.
Response
The name of the loaded library.