Uploaded image for project: 'Community Support - Open Source Project Repository Hosting'
  1. Community Support - Open Source Project Repository Hosting
  2. OSSRH-27072

implementation to REdis Serialization Protocol (RESP)

    XMLWordPrintable

    Details

      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)

      { System.out.println(n.toRespFormatString()); }

        Attachments

          Activity

            People

            Assignee:
            jorlina Joel Orlina
            Reporter:
            yourcaptain aiqing yuan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                tigCommentSecurity.panel-title