Rails中的乐观锁及应用
2020-10-14 本文已影响0人
hwang_zhic
源码解析:https://ruby-china.org/topics/37161
应用:https://ruby-china.org/topics/28963
重试:https://ruby-china.org/topics/29453
应用:https://ruby-china.org/topics/38507
简单来说,rails有乐观锁的接口,给表加一个字段lock_version
就实现了乐观锁