Package com.cxy.redisclient.integration.protocol

Examples of com.cxy.redisclient.integration.protocol.RedisSession.connect()


import 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");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.