0.引用阅读
1.基本概念
测试与验证
服务器端打断点:
(gdb) p server->db->dict->ht[0]->size
$1 = 8
(gdb) p server->db->dict->ht[0]->used
$4 = 6
(gdb) p server->db->dict->ht[0]->sizemask
$6 = 7
(gdb) p server->db->dict->ht[1]->size
$2 = 0
(gdb) p server->db->dict->ht[1]->used
$3 = 0
(gdb) p server->db->dict->ht[1]->sizemask
$7 = 0
(gdb) p server->db->dict->rehashidx
$5 = -1
(gdb) quit
客户端:
>keys *
>flushall