removeif / blog_comment

personal blog comment.
https://removeif.github.io/
1 stars 2 forks source link

redis分布式锁Redlock的实现 - 辣椒の酱 #113

Open removeif opened 4 years ago

removeif commented 4 years ago

https://removeif.github.io/database/redis/redis%E5%88%86%E5%B8%83%E5%BC%8F%E9%94%81Redlock%E7%9A%84%E5%AE%9E%E7%8E%B0.html

普通实现 说道Redis分布式锁大部分人都会想到:setnx+lua,或者知道set key value px milliseconds nx。后一种方式的核心实现命令如下: