throw new IllegalStateException("Redis cache not available");
}
//get the count number
if(type == MessageCountType.ALL){
messageCount += jedis.zcount(queueUrl + "-" + shard + "-Q", String.valueOf(System.currentTimeMillis() - retention * 1000L), "+inf");
} else if (type == MessageCountType.INVISIBLE) {
messageCount += jedis.zcount(queueUrl + "-" + shard + "-Q", String.valueOf(System.currentTimeMillis()+1), "+inf");
}
}