4 ms·
Yes, match_delete would work. Even a little better, select_delete will return the number of entries that were purged. To delete everything where the third eleme
by bluesnowmonkey 4y ago
Yes, match_delete would work. Even a little better, select_delete will return the number of entries that were purged. To delete everything where the third element in a tuple is greater than a constant, should be something like:
:ets.select_delete(table, [{{:_, :_, :"$1"}, [], [{:>, :"$1", {:const, expires}}]}])