Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (20 sloc) 532 Bytes
-- get_key
-- @short: Retrieve a key/value pair from the database.
-- @inargs: key, *opttgt*, *optcfg*
-- @outargs: string or nil
-- @longdescr: Return a single value associated with a *key*
-- from either the appl global space, or from an optional
-- target or optional target/configuration.
-- @group: database
-- @cfunction: getkey
-- @related: store_key
-- @flags:
function main()
#ifdef MAIN
local test = store_key("test", "result");
local value = get_key("test");
if (value == "result") then
You can’t perform that action at this time.