Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ets_cache: Cache {ok, Val} rather than Val #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

weiss
Copy link
Member

@weiss weiss commented Jun 27, 2017

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}.

If the update_fun() returns ok, cache {ok, Val} rather than Val, because
that's the expected lookup return format.
@processone processone deleted a comment from coveralls Jan 23, 2019
@mremond
Copy link
Member

mremond commented Jan 23, 2019

It makes sense but I think we should maybe add a unit test to prevent regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants