2022年6月29日

Redis对象编码(encoding)之字符串对象详解

摘要: 上篇文章讲述了Redis对象的属性https://www.cnblogs.com/Joe-Go/p/16420643.html,这篇文章就是对上篇文章中Redis对象属性encoding(编码)之字符串对象进行详细的解释 字符串对象 字符串的编码可以是int、embstr、raw; 如果一个字符串对 阅读全文

posted @ 2022-06-29 17:51 AoTuDeMan 阅读(341) 评论(0) 推荐(0) 编辑

Redis对象属性详解

摘要: Redis的对象结构如下: 1 typedef struct redisObject{ 2 3 //类型 4 unsigned type:4; 5 6 //编码 7 unsigned encoding:4; 8 9 //指向底层数据的指针 10 void *ptr; 11 12 //对象引用计数 1 阅读全文

posted @ 2022-06-29 14:49 AoTuDeMan 阅读(217) 评论(0) 推荐(0) 编辑

导航