//jedis is lame and does not have a constant for "-inf" which Redis supports. So we have to
//pick an arbitrary old min value.
Set<String> revisibleSet = jedis.zrangeByScore(queueUrl + "-" + shard + "-V", System.currentTimeMillis() - (1000 * 3600 * 24 * 14), System.currentTimeMillis());
for (String revisibleMemId : revisibleSet) {
jedis.rpush(queueUrl + "-" + shard + "-Q", revisibleMemId);
jedis.zrem(queueUrl + "-" + shard + "-V", revisibleMemId);
}
ts2 = System.currentTimeMillis();
if (revisibleSet.size() > 0) {
logger.debug("event=redis_revisibility queue_url=" + queueUrl + " shard=" + shard + " num_made_revisible=" + revisibleSet.size() + " res_ts=" + (ts2 - ts1));
}