ets_al v0.1.2 EtsAl.Keeper View Source
ETS Abstraction Layer Generic abstraction layer for ETS operations.
Acts as an assets holder for ETS tables to let them survive crashes.
Should be started under the App's supervisor.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Clear a table under the Keeper's PID (ownership)
Create a table under the Keeper's PID (ownership)
Delete a table under the Keeper's PID (ownership)
Read a table from the dump and create it under the Keeper's PID (ownership)
Insert a key in the ETS table
Insert new key into the ETS table
List tables under the Keeper's PID (ownership)
Dump a table
Dump table contents to the list
Return info for the table
Update a key in the ETS table
Link to this section Functions
child_spec(arg) View Source
Returns a specification to start this module under a supervisor.
See Supervisor
.
clear_table(table_id) View Source
Clear a table under the Keeper's PID (ownership)
create_public_bag(table_id) View Source
create_public_ordered_set(table_id) View Source
create_public_set(table_id) View Source
create_table(table_id, table_spec) View Source
Create a table under the Keeper's PID (ownership)
delete(table_id, key) View Source
delete_table(table_id) View Source
Delete a table under the Keeper's PID (ownership)
fetch(table_id, key) View Source
fetch_range(table_id, start_key, limit) View Source
file2tab(table_id, file_path) View Source
Read a table from the dump and create it under the Keeper's PID (ownership)
insert(table_id, key, values) View Source
Insert a key in the ETS table.
Returns:
{:ok, true} on success,
Forensic.error(description) in case of error.
insert_new(table_id, key, values) View Source
Insert new key into the ETS table.
Returns:
{:ok, true} on success,
{:ok, false} if key already exists,
Forensic.error(description) in case of error.
key_exists?(table_id, key) View Source
list_tables() View Source
List tables under the Keeper's PID (ownership)
select(table_id, match_spec) View Source
select(table_id, match_spec, limit) View Source
select_delete(table_id, match_spec) View Source
tab2file(table_id, file_path) View Source
Dump a table
tab2list(table_id) View Source
Dump table contents to the list
table_exists?(table_id) View Source
table_info(table_id) View Source
Return info for the table
update(table_id, key, values) View Source
Update a key in the ETS table.
Returns:
{:ok, true} on success,
{:ok, false} if key does not exists in the table,
Forensic.error(description) in case of error.