Package redis.clients.jedis

Examples of redis.clients.jedis.Tuple.compareTo()


    public void tupleCompare() {
  Tuple t1 = new Tuple("foo", 1d);
  Tuple t2 = new Tuple("bar", 2d);

  assertEquals(-1, t1.compareTo(t2));
  assertEquals(1, t2.compareTo(t1));
  assertEquals(0, t2.compareTo(t2));
    }

    @Test
    public void zscan() {
View Full Code Here


  Tuple t1 = new Tuple("foo", 1d);
  Tuple t2 = new Tuple("bar", 2d);

  assertEquals(-1, t1.compareTo(t2));
  assertEquals(1, t2.compareTo(t1));
  assertEquals(0, t2.compareTo(t2));
    }

    @Test
    public void zscan() {
  jedis.zadd("foo", 1, "a");
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.