摘要:
reids中的字典可以说是redis中最重要的数据结构之一,redis作为高性能的kv存储工具,其键值对存储就是用了dict结构 基本的数据结构 typedef struct redisDb { ... dict *dict; /* The keyspace for this DB */ dict 阅读全文
摘要:
redis没有使用C默认的字符串,而是定义了一个名为“简单动态字符串”的数据结构,将其作为redis默认的字符串。其被用作存储字符串对象。 API sdscatfmt sdstrim sdsrange sdsupdatelen sdsclear sdscmp sdssplitlen sdsfrees 阅读全文
摘要:
API int anetTcpConnect(char *err, char *addr, int port); int anetTcpNonBlockConnect(char *err, char *addr, int port); int anetUnixConnect(char *err, c 阅读全文