Package com.cxy.redisclient.integration.protocol

Examples of com.cxy.redisclient.integration.protocol.Result


public class TestClient extends TestCase {
  public void testSet() throws IOException {
    RedisSession client = new RedisSession("localhost", 80);
    client.connect();
    Result result = client.execute("multi\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result.getResult());
    result = client.execute("incr int\r\n");
    System.out.println(result);
    Result result1 = client.execute("exec\r\n");
    System.out.println(result1.getResult());
    client.disconnect();
  }
View Full Code Here

TOP

Related Classes of com.cxy.redisclient.integration.protocol.Result

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.