Module folsom_utils

various util functions.

Authors: joe williams (j@boundary.com).

Description

various util functions

Function Index

convert_tags/1
get_ets_size/1
now_epoch/0
now_epoch/1
now_epoch_micro/0
timestamp/0
to_atom/1
update_counter/3
update_counter/3 Same as ets:update_counter/3 but inserts {Key, Value} if object is missing in the table.
update_counter_no_exceptions/3
update_counter_no_exceptions/3 Same as ets:update_counter/3 but inserts {Key, Value} if object is missing in the table, avoiding exceptions by reading first.

Function Details

convert_tags/1

convert_tags(Tags) -> any()

get_ets_size/1

get_ets_size(Tab) -> any()

now_epoch/0

now_epoch() -> any()

now_epoch/1

now_epoch(X1) -> any()

now_epoch_micro/0

now_epoch_micro() -> any()

timestamp/0

timestamp() -> any()

to_atom/1

to_atom(Binary) -> any()

update_counter/3

update_counter(Tid, Key, Value) -> any()

update_counter/3

update_counter(Tid, Key, Value) -> any()

Same as ets:update_counter/3 but inserts {Key, Value} if object is missing in the table.

update_counter_no_exceptions/3

update_counter_no_exceptions(Tid, Key, Value) -> any()

update_counter_no_exceptions/3

update_counter_no_exceptions(Tid, Key, Value) -> any()

Same as ets:update_counter/3 but inserts {Key, Value} if object is missing in the table, avoiding exceptions by reading first. Won't be required after https://github.com/erlang/otp/pull/362


Generated by EDoc