Skip to main content

Context

dynamic_loader("nauthilus_context")
local nauthilus_context = require("nauthilus_context")

nauthilus_context.context_set

Add a value to the shared Lua context. Values can be strings, numbers, booleans and tables. You can not add functions here.

dynamic_loader("nauthilus_context")
local nauthilus_context = require("nauthilus_context")

nauthilus_context.context_set("key", value)

Get a Lua context value:

nauthilus_context.context_get

dynamic_loader("nauthilus_context")
local nauthilus_context = require("nauthilus_context")

local value = nauthilus_context.context_get("key")

If there is no result, nil is returned.

nauthilus_context.context_delete

To delete a key/value pair from the Lua context, use the following function:

dynamic_loader("nauthilus_context")
local nauthilus_context = require("nauthilus_context")

nauthilus_context.context_delete("key")