Skip to content

[NEW] 能否增加一个 setNX 类似的功能,不存在则赋值,存在则返回旧值 #15

@suikelei

Description

@suikelei

The problem/use-case that the feature addresses

在实现可重入锁时,如果直接返回旧值,则可以减少一次查询

Description of the feature

不存在则赋值,存在则返回旧值

Additional information

或者是否有用TairString实现可重入的案例?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions