View Source Hologram.Commons.ETS (hologram v0.2.0)
Summary
Functions
Creates a named, public ETS table.
Creates an unnamed, public ETS table.
Deletes the ETS table if it exists.
Deletes a key-value pair from the ETS table.
Deletes the ETS table if it exists or raises ArgumentError otherwise.
Returns the value stored in the ETS table under the given key. If the key doesn't exist the :error :atom is returned.
Returns the value stored in the ETS table under the given key. If the key doesn't exist a KeyError is raised.
Returns all items stored in the ETS table.
Puts multiple items into the ETS table.
Puts an item into the ETS table.
Removes all items from the ETS table.
Determines whether the given ETS table exists.
Types
Functions
Creates a named, public ETS table.
@spec create_unnamed_table() :: tid()
Creates an unnamed, public ETS table.
Deletes the ETS table if it exists.
Deletes a key-value pair from the ETS table.
@spec delete!(tid()) :: true
Deletes the ETS table if it exists or raises ArgumentError otherwise.
Returns the value stored in the ETS table under the given key. If the key doesn't exist the :error :atom is returned.
Returns the value stored in the ETS table under the given key. If the key doesn't exist a KeyError is raised.
Returns all items stored in the ETS table.
Puts multiple items into the ETS table.
Puts an item into the ETS table.
@spec reset(tid()) :: true
Removes all items from the ETS table.
Determines whether the given ETS table exists.