乐观并发控制 - 为何Redis用乐观锁,而MySQL数据库却没有
巴扎黑
巴扎黑 2017-04-17 12:00:22
0
1
691

想知道为何Redis用乐观锁,而MySQL数据库却没有用。乐观锁说白了并不是锁,而只是版本号检查而已,为何Redis不像MySQL那样用真正的锁机制呢?

巴扎黑
巴扎黑

répondre à tous(1)
刘奇

乐观锁也是有优点的吧,可以减少开销,但是会导致脏数据进入数据库中。redis应该是为了效率(当然是我自己猜的),还有命令的简洁。

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!