Use the "read-write” strategy if your data is read-write.
如果你的数据是又读又写的,那么使用“read-write”策略。
Use the "nonstrict-read-write" strategy if your data is read-mostly or concurrent cache access and update is rare.
如果你的数据读很多或者很少有并发缓存访问和更新,那么可以使用“nonstrict - read - write”策略。
Optimistic Locking is a strategy where you read a record, take note of a version number and check that the version hasn't changed before you write the record back.
乐观锁是这样一种策略,你可以读取记录,记录版本号并检查,在你写回之前该版本没有改变。
应用推荐