Add a script path mapping. Allows includes of the form "includes
is a user
defined path
the name of the mapping. Note: do not include angle brackets
if a relative path is passed, it's relative to the caller of this function.
Mapped paths are also accepted, e.g. "~/server/scripts/lua" or "
Clears the command cache
Construct the final version of a file by interpolating its includes in dependency order.
the file whose content we want to construct
a cache to keep track of which includes have already been processed
Attach all lua scripts in a given directory to a client instance
redis client to attach script to
the path to the directory containing the scripts
Load redis lua scripts. The name of the script must have the following format:
cmdName-numKeys.lua
cmdName must be in camel case format.
For example: moveToFinish-3.lua
Parse a (top-level) lua script
the full path to the script
the content of the script
cache
Resolve the script path considering path mappings
the name of the script
the include stack, for nicer errors
Generated using TypeDoc
Lua script loader with include support