# 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/zvxbcna
如何基於 Redis 實現分佈式鎖**
一、分佈式鎖的概念與特點在分佈式系統中,爲了保證多個服務之間互斥地訪問共享資源,需要使用分佈式鎖。分佈式鎖的特點包括:互斥性:同一時刻只能有一個線程持有鎖。 可重入性:同一節點上的同一個線程如果獲取了鎖之後能夠再次獲取鎖。 鎖超時:支持鎖超時,防止死鎖。 高性能和高可用:加鎖和解鎖需要高效,同時也需要保證高可用,防止分佈式鎖失效。 具備阻塞和非阻塞性:能夠及時從阻塞狀態中被 ⌘ Read more