<div dir="ltr"><span><a class="" href="https://github.com/trapexit/otp/tree/feature/ets_lookup_and_delete">https://github.com/trapexit/otp/tree/feature/ets_lookup_and_delete</a></span><br><div><span><a class="" href="https://github.com/trapexit/otp/tree/feature/ets_pop_first_last">https://github.com/trapexit/otp/tree/feature/ets_pop_first_last</a></span><br>
</div><div><u><span><a class="" href="https://github.com/trapexit/otp/tree/feature/ets_swap">https://github.com/trapexit/otp/tree/feature/ets_swap</a></span></u><br></div><div><u><br></u></div><div>Similar to the previously mentioned... </div>
<div><br></div><div>A while back I worked on these but forgot to try and push them upstream. I thought I had done an a select and delete which returned the values removed but I can't seem to find it.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, May 12, 2014 at 2:12 PM, Anthony Ramine <span dir="ltr"><<a href="mailto:n.oxyde@gmail.com" target="_blank">n.oxyde@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Well, it sounds like we are all implementing a statsd-like system of some sort. :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Anthony Ramine<br>
<br>
Le 12 mai 2014 à 19:55, Pablo Polvorin <<a href="mailto:pablo.polvorin@process-one.net">pablo.polvorin@process-one.net</a>> a écrit :<br>
</font></span><div class="im HOEnZb"><br>
> I do. On one system I've a table holding many different counters, that are periodically flushed to an external system. Without the atomic take_all_objects/1, I'm retrieving all and then iterating and subtracting to all keys the values that I've just read..<br>
> btw, ets:update_counter/4 with default value will simplify it a lot too, thanks!<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>