redis通讯协议(RESP )

RESP 是redis客户端和服务端之前使用的一种通讯协议;

RESP 的特点:实现简单、快速解析、可读性好

For Simple Strings the first byte of the reply is "+" 回复

For Errors the first byte of the reply is "-" 错误

For Integers the first byte of the reply is ":" 整数

For Bulk Strings the first byte of the reply is "$" 字符串

For Arrays the first byte of the reply is "*" 数组

 可以看一下自己的aop文件,应该就懂了,但是aop文件不能压缩,压缩了就看不出来了

原文地址:https://www.cnblogs.com/lzghyh/p/12626908.html