atomic read+delete operation on ETS record

Pablo Platt pablo.platt@REDACTED
Fri Apr 16 14:06:47 CEST 2010


ETS has atomic operations like update_element and update_counter.
Is there a way to read a record and delete it in the same operation without using a gen_server that manage the table?

Is there a way to update a list inside a record in an atomic way?
For example, mongodb and redis let you add and remove items from the beginning and end of lists.
ETS records are Erlang terms so it might be possible and will be very useful.

Thanks



      


More information about the erlang-questions mailing list