cache_tab
cache_tab copied to clipboard
ets_cache: Cache {ok, Val} rather than Val
If the update_fun()
returns ok
, cache {ok, Val}
rather than Val
. Otherwise the ets_cache:update()
caller would always have to specify {ok, Val}
.