firebase_pushid v0.1.0 FirebasePushid.Cache View Source

Link to this section Summary

Link to this section Functions

Link to this function get_and_update(pid, atom, value) View Source

Gets and updates prev_ts example:

iex> {:ok, data} = FirebasePushid.Cache.start_link(:independent)
...> FirebasePushid.Cache.get_and_update(data, :prev_ts, 5)
5
Link to this function set_random_nums(pid, nums) View Source
Link to this function update(pid, atom, value) View Source

Updates prev_ts example:

iex> {:ok, data} = FirebasePushid.Cache.start_link(:independent)
...> FirebasePushid.Cache.update(data, :prev_ts, 5)
:ok