UAInspector v0.19.0 UAInspector.Storage.ETS View Source

ETS Interaction for storage servers.

Link to this section Summary

Functions

Creates a new named storage data table

Creates a new named storage lookup table

Deletes a storage table if it exists

Tries to retrieve a data table tid from a lookup table

Updates the data table tid in a lookup table

Link to this section Functions

Link to this function

create_data(name) View Source
create_data(atom()) :: :ets.tid()

Creates a new named storage data table.

Link to this function

create_lookup(name) View Source
create_lookup(atom()) :: atom()

Creates a new named storage lookup table.

Deletes a storage table if it exists.

Link to this function

fetch_data(lookup_name, data_name) View Source
fetch_data(atom(), atom()) :: :ets.tid() | nil

Tries to retrieve a data table tid from a lookup table.

Link to this function

update_data(lookup_name, data_name, data_tid) View Source
update_data(atom(), atom(), :ets.tid()) :: :ok

Updates the data table tid in a lookup table.