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 "
Construct the final version of a file by interpolating its includes in dependency order.
the file whose content we want to construct
Optional
processed: Set<string>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
Optional
cache: Map<string, ScriptMetadata>Optional
cache: Map<string, ScriptMetadata>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
Optional
dir: stringOptional
cache: Map<string, ScriptMetadata>Parse a (top-level) lua script
the full path to the script
the content of the script
Optional
cache: Map<string, ScriptMetadata>cache
Generated using TypeDoc
Lua script loader with include support