Package redis.clients.jedis

Examples of redis.clients.jedis.BinaryJedis.multi()


  public void testMulti() throws Exception {
    byte[] key = "key".getBytes();
    byte[] value = "value".getBytes();

    BinaryJedis jedis = (BinaryJedis) connection.getNativeConnection();
    Transaction multi = jedis.multi();
    //connection.set(key, value);
    multi.set(value, key);
    System.out.println(multi.exec());

    connection.multi();
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.