摘要: redis中双向链表相关的文件为:adlist.h与adlist.c 一、数据结构 redis里定义的双向链表,与普通双向链表大致相同 1.1 单个节点结构 1 /* Node, List, and Iterator are the only data structures used current 阅读全文
posted @ 2021-07-03 21:28 Mr-xxx 阅读(35) 评论(0) 推荐(0) 编辑
摘要: redis中动态字符串sds相关的文件为:sds.h与sds.c 一、数据结构 redis中定义了自己的数据类型"sds",用于描述 char*,与一些数据结构 1 typedef char *sds; 2 3 /* Note: sdshdr5 is never used, we just acce 阅读全文
posted @ 2021-07-03 17:43 Mr-xxx 阅读(117) 评论(0) 推荐(0) 编辑