@Test
@IfProfileValue(name = "redisVersion", value = "2.8+")
public void zScanShouldReadEntireValueRange() {
if (!ConnectionUtils.isJedis(connectionFactory) && !ConnectionUtils.isLettuce(connectionFactory)) {
throw new AssumptionViolatedException("ZSCAN is only available for jedis and lettuce");
}
if (connection.isPipelined() || connection.isQueueing()) {
throw new AssumptionViolatedException("ZSCAN is only available in non pipeline | queue mode.");
}
connection.zAdd("myset", 2, "Bob");
connection.zAdd("myset", 1, "James");
connection.zAdd("myset", 4, "Joe");