Distributed Locks - redisJonny included in redis 2022-04-05 90 words One minute Contents 描述注意點流程圖相關連結描述API 剛進來先嘗試取得 lock如果有取得則開啟看門狗,往 2無取得則繼續等待,嘗試取得執行邏輯解鎖,關閉看門狗注意點如果 redis 操作分為兩步驟或以上,請使用 lua 保持操作一制性流程圖相關連結https://www.modb.pro/db/77169https://juejin.cn/post/7024307688196538375https://segmentfault.com/a/1190000038988087https://github.com/jonyig/go-leetcode/blob/master/playground/distributed-locks/service/redisRepository.goPlease enable JavaScript to view the comments powered by Gitalk.