Registry¶
The registry is functionally similar to mgSet and mgGet but you
are able to write any values you want.
-
knRegSet(key:
string, value:string):boolean¶ Writes or replaces the value assocaited with
keywith the given value. Returns boolean indicating success.
-
knRegGet(key:
string):string¶ Get the value assocaited with
keyfrom the registry.
-
knRegHas(key:
string):boolean¶ Checks if the registry has a given key. Return
trueif there is a value assocaited with the givenkey, otherwise returnfalse.
-
knRegDelete(key:
string)¶ Removes a given key-value pair from the registry, when given its key.
-
knRegKeys():
table[string]¶ Returns an array-like table containing all of the keys in the registry.