Key
Utilizado para guardar valores em memória para utilização em runtime.
Atalhos
Métodos
Get
-- @param name The name of the key storaged
-- @return the value associated with the key or an empty string if the key does not exists
get_key(name)-- example usage:
local my_value = get_key("my_key")Set
-- @param key The key name to be storaged
-- @param value The value to be storaged
set_key(key, value)-- example usage:
set_key("my_key", 123)Remove
-- @param name The name of the key to be removed
-- @return the value the value that was removed or an empty string if the key does not exists
remove_key(name)-- example usage:
local removed_value = remove_key("my_key")