《Redis設計與實現》1.數據結構域對象

一、SDS:simple dynamic string int len:已使用的buf長度 int free:未使用的長度 char buf[]:存儲字符串 二、鏈表:雙向鏈表,包含head、tail指針,head的prev爲null,tail節點的next爲null 三、字典:類似於java hashmap,rehash過程是漸進式的,內部維護一個是否正在rehash的標識,維護一個rehash
相關文章
相關標籤/搜索