redis数据结构

redis常用的数据结构: 1.string string 在redis中以sds (simple dynamic string)对象存在,数据结构: struct sdshdr{ //记录buf数组中已使用字节的数量 //等于 SDS 保存字符串的长度 int len; //记录 buf 数组中未使用字节的数量 int free; //字节数组,用于保存字符串 char buf[]; } 由于是
相关文章
相关标签/搜索