@Override
    public V getAndRemove(long timestamp) {
        return get(getAndRemoveAsync(timestamp));
    }
@Test
    public void testGetAndRemove() {
        RTimeSeries<String, String> t = redisson.getTimeSeries("test");
        t.add(1, "10", "100");
        t.add(2, "20");
        t.add(3, "30", "300", Duration.ofSeconds(2));
        t.add(4, "40");

        String s1 = t.getAndRemove(1);
        assertThat(s1).isEqualTo("10");
        String s2 = t.getAndRemove(2);
        assertThat(s2).isEqualTo("20");
        String s3 = t.getAndRemove(3);
        assertThat(s3).isEqualTo("30");
        assertThat(t.size()).isEqualTo(1);
    }