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

SetIfNotExist 返回值问题 #2331

Closed
tiansin opened this issue Nov 28, 2022 · 2 comments
Closed

SetIfNotExist 返回值问题 #2331

tiansin opened this issue Nov 28, 2022 · 2 comments
Assignees
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version. enhancement

Comments

@tiansin
Copy link
Contributor

tiansin commented Nov 28, 2022

如果将过期时间设置为0, 调用setnx后不管是否成功都会返回false

if v.Int() > 0 && duration > 0 {

@gqcn gqcn added bug It is confirmed a bug, but don't worry, we'll handle it. enhancement help wanted labels Feb 6, 2023
@github-actions
Copy link

github-actions bot commented Feb 6, 2023

Hello @tiansin. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it!
你好 @tiansin。我们喜欢您的提案/反馈,并希望您或其他社区成员通过拉取请求做出贡献。我们提前感谢您的贡献,并期待对其进行审查。

@gqcn gqcn removed the help wanted label Feb 8, 2023
@gqcn gqcn self-assigned this Feb 8, 2023
gqcn added a commit that referenced this issue Feb 8, 2023
@gqcn
Copy link
Member

gqcn commented Feb 8, 2023

#2432

@gqcn gqcn closed this as completed Feb 8, 2023
@gqcn gqcn added the done This issue is done, which may be release in next version. label Feb 8, 2023
gqcn added a commit that referenced this issue Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. done This issue is done, which may be release in next version. enhancement
Projects
None yet
Development

No branches or pull requests

2 participants