Skip to content

jag522/dudu-RESP_intepreter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

#RESP_Intepreter 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) {
    System.out.println(n.toRespFormatString());
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%