redis笔记_源码_字典dict

参考:https://redissrc.readthedocs.io/en/latest/datastruct/dict.html

 

 

 

 

Expand

条件:

 

 新的table 大小:

 

 

Rehash:

条件:Expand后设置rehash index -1 到0,开始启动rehash

执行:在dictAddRaw,dictGenericDelete,dictFind,dictGetRandomKey中单次执行

 

 

 

posted @ 2019-10-10 20:25  water_bear  阅读(154)  评论(0编辑  收藏  举报