摘要: reids中的字典可以说是redis中最重要的数据结构之一,redis作为高性能的kv存储工具,其键值对存储就是用了dict结构 基本的数据结构 typedef struct redisDb { ... dict *dict; /* The keyspace for this DB */ dict 阅读全文
posted @ 2024-09-02 23:29 chx9 阅读(5) 评论(0) 推荐(0) 编辑
摘要: TODO 阅读全文
posted @ 2024-05-24 09:52 chx9 阅读(2) 评论(0) 推荐(0) 编辑
摘要: redis没有使用C默认的字符串,而是定义了一个名为“简单动态字符串”的数据结构,将其作为redis默认的字符串。其被用作存储字符串对象。 API sdscatfmt sdstrim sdsrange sdsupdatelen sdsclear sdscmp sdssplitlen sdsfrees 阅读全文
posted @ 2024-05-21 21:39 chx9 阅读(4) 评论(0) 推荐(0) 编辑
摘要: API int anetTcpConnect(char *err, char *addr, int port); int anetTcpNonBlockConnect(char *err, char *addr, int port); int anetUnixConnect(char *err, c 阅读全文
posted @ 2024-05-20 09:06 chx9 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-05-16 17:31 chx9 阅读(7) 评论(0) 推荐(0) 编辑