# 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/oeaqkqq
高併發下千萬數據量的 Mysql 中熱點數據如何持續保留在 Redis 中**
在高併發下,爲了增加系統的併發能力通常都會使用緩存技術來緩存熱點數據,目的是防止大量的請求打到 Mysql 上導致 Mysql 被打垮而崩潰。 假設現在 Mysql 中千萬條數據量並且有幾十萬條是熱點數據,那麼如何實現 Redis 中始終存儲的都是熱點數據呢? 在介紹 Redis 如何持久保留熱點數據之前先說兩種算法:LRU 和 LFU1、LRU 和 LFU 算法LRU:最近最 ⌘ Read more