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

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

Open
JHue58 opened this issue Jul 11, 2024 · 0 comments
Open

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

JHue58 opened this issue Jul 11, 2024 · 0 comments

Comments

@JHue58
Copy link

JHue58 commented Jul 11, 2024

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

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