Redis 采用 C/S 架构通信一般分为两部(不包括 pipeline 和 pubsub): client 向 server 发送一条命令 server 解析并执行命令,返回响应结果给 client Redis 采用 RESP(Redis Serialization Protocol) 协议