Posted onEdited onInRedis Symbols count in article: 5.6kReading time ≈5 mins.
3.0哈希表
下面是哈希表结构:
1 2 3 4 5 6 7 8
/* This is our hash table structure. Every dictionary has two of this as we * implement incremental rehashing, for the old to the new table. */ typedefstructdictht { dictEntry **table; unsignedlong size; unsignedlong sizemask; unsignedlong used; } dictht;