沉默的背影 X-Pacific

keep learning

摘要: redis分布式锁的实现方式是: lock(){ sync(this){ //无法获取自旋 setnx(key,UUID) setex(60s) return UUID } } unlock(key,value){ sync(this){ if(get(key) == UUID){ del(key) 阅读全文
posted @ 2022-10-29 23:01 乂墨EMO 阅读(61) 评论(0) 推荐(0) 编辑