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

[Bug]提供的Spring Boot的示例中的CaptchaCacheServiceRedisImpl,可能会插入永久有效的Key的情况 #66

Open
zhezzz opened this issue Oct 13, 2021 · 0 comments
Assignees

Comments

@zhezzz
Copy link

zhezzz commented Oct 13, 2021

在限流的相关代码中,有如下步骤:
1.判断限流Key是否存在,不存在则新建
2.调用increment方法
可能在第一步判断存在后,Key过期,此时再执行incrby命令,会插入TTL为-1的Key

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

2 participants