博客 / 列表

歡樂的阿蘇 - kubernetes indexer源碼解析

kubernetes indexer源碼解析 kubernetes indexer是實現了多索引的本地緩存 1.背景 以db中學校學生表做本地緩存為例 type Student struct { ID uint32 Name string Class uint32 } // 本地緩存,id和學生的映射 var idCache = map[uint32]Student{}

kubernetes , 源碼學習 , 源碼分析 , go , 後端