redis 源代码阅读与学习笔记(四)

接收发缓存区处理

本章关注 redis 5.0 如何处理接收发数据

相关数据结构

/* With multiplexing we need to take per-client state.
 * Clients are taken in a linked list. */
typedef struct client {
    // ... 其他无关字段略 ...
    sds querybuf;           /* Buffer we use to accumulate client queries. */
    // ... 其他无关字段略 ...
    int argc;               /* Num of arguments of current command. */
    robj **argv;            

猜你喜欢

转载自blog.csdn.net/u013272009/article/details/105223042