RedisProtocol-redis协议翻译
摘要:https://redis.io/topics/protocol/ 原文地址 为了更好的理解redis协议,借助百度翻译和自己理解翻译了这篇文章。 redis协议确实够简单,容易理解。 *********************************************************
阅读全文
posted @
2021-09-29 15:29
子虚乌有
阅读(150)
推荐(0) 编辑
redis6.0.5之networking.c阅读笔记-与客户端通讯
摘要:#include "server.h" #include "atomicvar.h" #include <sys/socket.h> #include <sys/uio.h> #include <math.h> #include <ctype.h> static void setProtocolEr
阅读全文
posted @
2021-09-28 17:29
子虚乌有
阅读(724)
推荐(0) 编辑
redis6.0.5之pubsub.c阅读笔记-发布订阅
摘要:#include "server.h" int clientSubscriptionsCount(client *c); /* * Pubsub client replies API 发布订阅客户端回复API * */ /* Send a pubsub message of type "messag
阅读全文
posted @
2021-09-28 17:22
子虚乌有
阅读(54)
推荐(0) 编辑
redis6.0.5之slowlog阅读笔记-慢查询
摘要:***********************************h******************************************************** #ifndef __SLOWLOG_H__ #define __SLOWLOG_H__ #define SLOWL
阅读全文
posted @
2021-09-18 17:10
子虚乌有
阅读(98)
推荐(0) 编辑
redis6.0.5之multi.c阅读笔记-事务相关
摘要:/* MULTI/EXEC */ /* Client state initialization for MULTI/EXEC */ MULTI/EXEC的客户端状态初始化 void initClientMultiState(client *c) { c->mstate.commands = NULL
阅读全文
posted @
2021-09-18 08:40
子虚乌有
阅读(97)
推荐(0) 编辑
redis6.0.5之notify.c阅读笔记-消息通知
摘要:/* This file implements keyspace events notification via Pub/Sub and * described at https://redis.io/topics/notifications. */ 这个文件通过Pub/Sub实现键空消息通知事件,
阅读全文
posted @
2021-09-16 17:25
子虚乌有
阅读(127)
推荐(0) 编辑
redis6.0.5之db.c阅读笔记-数据库
摘要:*************************************************************************************************************************** /* * C-level DB API C语言层次的
阅读全文
posted @
2021-09-15 14:06
子虚乌有
阅读(151)
推荐(0) 编辑
redis6.0.5之evict阅读笔记-内存淘汰策略
摘要:*************************************************************************************************************************** /* * Data structures 数据结构
阅读全文
posted @
2021-09-02 18:03
子虚乌有
阅读(158)
推荐(0) 编辑