@Override
    public Long zLexCount(byte[] key, org.springframework.data.domain.Range range) {
        String min = value(range.getLowerBound(), "-");
        String max = value(range.getUpperBound(), "+");

        return read(key, StringCodec.INSTANCE, ZLEXCOUNT, key, min, max);
    }
@Test
    public void testZLexCount() {
        StringRedisTemplate redisTemplate = new StringRedisTemplate();
        redisTemplate.setConnectionFactory(new RedissonConnectionFactory(redisson));
        redisTemplate.afterPropertiesSet();

        redisTemplate.boundZSetOps("test").add("1", 10);
        redisTemplate.boundZSetOps("test").add("2", 20);
        redisTemplate.boundZSetOps("test").add("3", 30);

        Long size = redisTemplate.boundZSetOps("test").lexCount(Range.closed("1", "2"));
        assertThat(size).isEqualTo(2);
    }