12 2019 档案

摘要:先把结论抛出来:redis无法正确实现分布式锁!即使是redis单节点也不行!redis的所谓分布式锁无法用在对锁要求严格的场景下,比如:同一个时间点只能有一个客户端获取锁。 首先来看下单节点下一般redis分布式锁的实现,其实就是个set: 加锁: /** * 尝试获取分布式锁 * @param 阅读全文 »
posted @ 2019-12-19 17:28 yaphetsfang 阅读(372) 评论(0) 推荐(0) 编辑
摘要:The so-called phantom problem occurs within a transaction when the same query produces different sets of rows at different times. For example, if a SE 阅读全文 »
posted @ 2019-12-17 16:30 yaphetsfang 阅读(988) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示