84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
想知道为何Redis用乐观锁,而MySQL数据库却没有用。乐观锁说白了并不是锁,而只是版本号检查而已,为何Redis不像MySQL那样用真正的锁机制呢?
乐观锁也是有优点的吧,可以减少开销,但是会导致脏数据进入数据库中。redis应该是为了效率(当然是我自己猜的),还有命令的简洁。
乐观锁也是有优点的吧,可以减少开销,但是会导致脏数据进入数据库中。redis应该是为了效率(当然是我自己猜的),还有命令的简洁。