Details
-
Type:
New Project
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Labels:
-
Group Id:net.yesdata
-
Project URL:
-
Already Synced to Central:No
Description
REdis Serialization Protocol (RESP) implemented in java.
You can simply construct string commands to RESP commands, and interpret redis response.
By import net.yesdata.RESP_intepreter.* you can play with RESP with happy.
How to format command string to RESP style?
String command = "INFO";
IInterpreter intepreter = new DefaultRespInterpreter();
String sentCommand = intepreter.FormatCommand(command);
How to read and print RESP style response?
IInterpreter intepreter = new DefaultRespInterpreter();
List<IRespNode> respNodes = intepreter.IntepretResponse(responseBody);
for(IRespNode n : respNodes)