Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
suikelei opened this issue Nov 4, 2023 · 0 comments

Comments

@suikelei
Copy link

suikelei commented Nov 4, 2023

The problem/use-case that the feature addresses

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

Description of the feature

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

Additional information

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant