Code example for LinkedHashSet

Methods: add

0
        jedis.zadd(bfoo, 1d, ba);
        jedis.zadd(bfoo, 10d, bb);
        jedis.zadd(bfoo, 0.1d, bc);
        jedis.zadd(bfoo, 2d, ba);
 
        Set<Tuple> bexpected = new LinkedHashSet<Tuple>();
        bexpected.add(new Tuple(bc, 0.1d));
        bexpected.add(new Tuple(ba, 2d));
 
        Set<Tuple> brange = jedis.zrangeWithScores(bfoo, 0, 1);
        assertEquals(bexpected, brange);
 
        bexpected.add(new Tuple(bb, 10d));
        brange = jedis.zrangeWithScores(bfoo, 0, 100);
        assertEquals(bexpected, brange);
 
    } 
 
    @Test 
    public void zrevrangeWithScores() { 
        jedis.zadd("foo", 1d, "a");