get_key(3)
π get_key(3) β Arcan Lua API π
okay so bestie, welcome to the get_key(3) page! This one is part of the Arcan Lua API, and it's here to hand you a key/value pair from the database. It's giving βsmall function, big main character energyβ β¨
π NAME π
get_key β retrieve a key/value pair from the database.
πΈ SYNOPSIS πΈ
string or nil
get_key( key, opttgt, optcfg )
π¦ DESCRIPTION π¦
So here's the tea: get_key returns a single value associated with a key. That value comes from either the appl global space, or from an optional target, or from an optional target/configuration. That's it, and that's iconic. The return vibe is string or nil, just like the synopsis says.
π EXAMPLE π
function get_key0()
local test = store_key("test", "result");
local value = get_key("test");
if (value == "result") then
print("OK");
end
end
This little demo stores "result" under "test", grabs it back with get_key("test"), and prints OK when it matches. Slay.
π SEE ALSO π
store_key(3)β the bestie function you'll want next, for real.
Bye bestie π«Ά β source/section: database; date: October 2026; manual page: get_key(3). Mwah π
π¦ where this page comes from
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms