We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
redisTemplate.opsForValue().decrement(prodId,number)
1、利用redis的原子性减库存 会更合适吧
2、这里的预减库存,多个jvm实例的情况下,synchronized应该是没有锁住的,是用类似redisson 分布式锁来控制
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
redisTemplate.opsForValue().decrement(prodId,number)
1、利用redis的原子性减库存 会更合适吧
2、这里的预减库存,多个jvm实例的情况下,synchronized应该是没有锁住的,是用类似redisson 分布式锁来控制
The text was updated successfully, but these errors were encountered: