Code example for LinkedHashSet

Methods: add

0
        jedis.zadd(bfoo, 1d, ba);
        jedis.zadd(bfoo, 2d, bb);
 
        double bscore = jedis.zincrby(bfoo, 2d, ba);
 
        Set<byte[]> bexpected = new LinkedHashSet<byte[]>();
        bexpected.add(bb);
        bexpected.add(ba);
 
        assertEquals(3d, bscore, 0);
        assertEquals(bexpected, jedis.zrange(bfoo, 0, 100));
 
    } 
 
    @Test 
    public void zrank() { 
        jedis.zadd("foo", 1d, "a"); 
        jedis.zadd("foo", 2d, "b"); 
 
        long rank = jedis.zrank("foo", "a");
        assertEquals(0, rank);