@Override
    public long countKeys() {
        return get(countKeysAsync());
    }
@Test
    public void testCountKeys() {
        RJsonBucket<TestType> al = redisson.getJsonBucket("test", new JacksonCodec<>(TestType.class));
        TestType t = new TestType();
        t.setName("name1");
        al.set(t);
        assertThat(al.countKeys()).isEqualTo(1);

        NestedType nt = new NestedType();
        nt.setValues(Arrays.asList("t1", "t2", "t4", "t5", "t6"));
        al.set("type", nt);
        assertThat(al.countKeys()).isEqualTo(2);
        List<Long> l = al.countKeysMulti("$.type");
        assertThat(l.get(0)).isEqualTo(1L);
    }