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

应该有并发问题吧? #4

Open
nadirvishun opened this issue Dec 20, 2023 · 0 comments
Open

应该有并发问题吧? #4

nadirvishun opened this issue Dec 20, 2023 · 0 comments

Comments

@nadirvishun
Copy link

cache.contains(fullKey) cache.set(fullKey, "1", expireMills)这两个操作不是原子的,感觉直接用redisson的tryLock(0,expireMills,TimeUnit.MILLISECONDS)就挺好。

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