Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Configuration > Erlang Modules > age_registry
list_keys/2
Description
list_keys/2 is an Erlang function exported by "age_registry" module.
Returns a sorted list with key names by specified Cell name and Hive.
The list is sorted ascending by key name.
References
•allocate_hive/2
•add_key/4
•list_keys/3
Parameters
Name
Type
Hive
atom()
Hive identifier.
Cell
string()
Cell name.
Result
Value or Type
list()
Returns a list with key names.
Code Sample
> age_registry:list_keys(test, "CELL_1"). [ {"/key_a", "Root of chain A"}, {"/key_a/1", 12.5}, {"/key_a/2", 123}, {"/key_a/3", true}, {"/key_a/4", [1, 2, 3]}, {"/key_b", "Root of chain B"}, {"/key_b/company", "BINETIX LLC"}, {"/key_b/first_name", "Andrew"}, {"/key_b/last_name", "Andreev"}, {"/key_b/user_enabled", true}, {"/key_b/user_id", andrew} ]