@Override
    public Iterator<V> iterator(int count) {
        return new RedissonBaseIterator<V>() {

            @Override
            protected ListScanResult<Object> iterator(RedisClient client, String nextIterPos) {
                return scanIterator(getRawName(), client, nextIterPos, count);
            }

            @Override
            protected void remove(Object value) {
                throw new UnsupportedOperationException();
            }

        };
    }
@Test
    public void testIterator() {
        RTimeSeries<String, Object> t = redisson.getTimeSeries("test");
        for (int i = 0; i < 19; i++) {
            t.add(i, "" + i*10);
        }

        Iterator<String> iter = t.iterator(3);
        for (int i = 0; i < 19; i++) {
            assertThat(iter.hasNext()).isTrue();
            assertThat(iter.next()).isEqualTo("" + i*10);
        }
        assertThat(iter.hasNext()).isFalse();
    }