Used to encode messages into RESP (REdis Serialization Protocol) format. More...
#include <string>Go to the source code of this file.
Classes | |
| class | RespEncoder |
Used to encode messages into RESP (REdis Serialization Protocol) format.
This class provides static methods to encode different types of RESP messages, including simple strings, errors, integers, bulk strings, and null responses. Each method returns a string formatted according to the RESP protocol. The RESP protocol is used by Redis for communication between the client and server.