get_key(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’– 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