concurrent-map icon indicating copy to clipboard operation
concurrent-map copied to clipboard

feat: 希望新增一个类似GetOrUpdate的方法

Open JHue58 opened this issue 7 months ago • 0 comments

有的时候希望在取得Value的时候,在锁持有期间内对Value进行一些判断操作然后再更新值。 现阶段只能通过Upsert()方法来实现,但是如果不进行更新时,就需要upsert相同的元素,但其实是没有必要的。

JHue58 avatar Jul 11 '24 08:07 JHue58