零、总览:type 与 encoding 的两层设计 Redis 的 redisObject 结构有两个关键字段: 同一个 type 在不同数据规模下会切换 encoding,这是全文暗线,也是面试最