org.springframework.data:spring-data-redis:2.4.5 try { if (limit.isUnlimited()) { return connection.getCluster().zrevrangeByLex(key, min, max); } return connection.getCluster().zrevrangeByLex(key, min, max, limit.getOffset(), limit.getCount()); } catch (Exception ex) { throw convertJedisAccessException(ex); } .zrevrangeByLex(key, min, max) -> .zrevrangeByLex(key, max,min); parameter order issue