jhalterman / expiringmap

A high performance thread-safe map that expires entries
Apache License 2.0
1k stars 142 forks source link

Make computeIfAbsent / computeIfPresent operations atomic #59

Open egor-doudkin-mpf opened 5 years ago

egor-doudkin-mpf commented 5 years ago

Neither computeIfAbsent nor computeIfPresentare atomic. This behaviour is not consistent with putIfAbsent/replace operations and may lead to a misusage of the API