大佬64-24 = 44;這里有點(diǎn)問(wèn)題吧犯助,應(yīng)該是64-(type(1)+encoding(1)+refcount(1)+ptr(16)+結(jié)尾的\0(1))=44;
Redis 字符串對(duì)象及其編碼詳解當(dāng)我們?cè)趓edis里面保存一個(gè)鍵值對(duì)的時(shí)候忿族,我們至少會(huì)創(chuàng)建兩個(gè)對(duì)象,一個(gè)對(duì)象用作鍵值對(duì)的鍵(鍵對(duì)象)速挑,另外一個(gè)對(duì)象用作鍵值對(duì)的值(值對(duì)象),下面先來(lái)介紹下redis 對(duì)象的結(jié)...