# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/4jwsgaq
圖解 redsync 開源包,告訴你分佈式鎖爲什麼不僅僅是 setnx
大家好,我是漁夫子。今天跟大家聊聊 redis 實現的分佈式鎖時需要注意的問題。之前給大家推薦過一個 golang 版本的 redis 的分佈式鎖是redsync,該包也是 redis 官網推薦使用的。有讀者給我留言說 爲什麼不能直接使用 redis 的setnx命令就行,非要用這麼一個包呢?今天我們就深入剖析一下redsync包的實現,看看除了setnx命令外,還做了哪些必要的工作。redsyn ⌘ Read more