Lua Methods Reference > General Methods > get_config

get_config
The get_config method loads a configuration file.
Configuration files are cached after the first call to get_config, to avoid unnecessary disk I/O in the likely event that the same configuration is accessed frequently by subsequent invocations of the Lua script. One cache is maintained per Lua state, so the maximum number of reads for a configuration file is equal to the number of threads that run Lua scripts.
An error is raised if the configuration file does not exist.
Syntax
get_config( path )
Arguments
 
Returns
(LuaConfig). A LuaConfig object.