Skip to content

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

@JHue58

Description

@JHue58

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions