@Override
    public long arrayIndex(String path, Object value) {
        return get(arrayIndexAsync(path, value));
    }
@Test
    public void testArrayIndex() {
        RJsonBucket<TestType> al = redisson.getJsonBucket("test", new JacksonCodec<>(TestType.class));
        TestType t = new TestType();
        NestedType nt = new NestedType();
        nt.setValues(Arrays.asList("t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8"));
        t.setType(nt);
        al.set(t);

        long s1 = al.arrayIndex("type.values", "t3");
        assertThat(s1).isEqualTo(2);

        List<Long> s2 = al.arrayIndexMulti("$.type.values", "t2");
        assertThat(s2).containsExactly(1L);

        long s3 = al.arrayIndex("type.values", "t3", 3, 6);
        assertThat(s3).isEqualTo(-1);

        List<Long> s4 = al.arrayIndexMulti("$.type.values", "t3", 2, 7);
        assertThat(s4).containsExactly(2L);
    }