redis.clients.jedis.Jedis.zrevrangeWithScores()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(260)

本文整理了Java中redis.clients.jedis.Jedis.zrevrangeWithScores()方法的一些代码示例,展示了Jedis.zrevrangeWithScores()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jedis.zrevrangeWithScores()方法的具体详情如下:
包路径:redis.clients.jedis.Jedis
类名称:Jedis
方法名:zrevrangeWithScores

Jedis.zrevrangeWithScores介绍

暂无

代码示例

代码示例来源:origin: sohutv/cachecloud

@Override
 public Set<Tuple> execute(Jedis connection) {
  return connection.zrevrangeWithScores(key, start, end);
 }
}.runBinary(key);

代码示例来源:origin: sohutv/cachecloud

@Override
 public Set<Tuple> execute(Jedis connection) {
  return connection.zrevrangeWithScores(key, start, end);
 }
}.run(key);

代码示例来源:origin: sohutv/cachecloud

@Override
  public Set<Tuple> execute(Jedis connection) {
    return connection.zrevrangeWithScores(keyByte, start, end);
  }
}.runBinary(keyByte);

代码示例来源:origin: sohutv/cachecloud

@Override
public Set<Tuple> zrevrangeWithScores(String key, long start, long end) {
 Jedis j = getShard(key);
 return j.zrevrangeWithScores(key, start, end);
}

代码示例来源:origin: sohutv/cachecloud

@Override
public Set<Tuple> zrevrangeWithScores(byte[] key, long start, long end) {
 Jedis j = getShard(key);
 return j.zrevrangeWithScores(key, start, end);
}

代码示例来源:origin: Netflix/conductor

@Override
public Set<Tuple> zrevrangeWithScores(String key, long start, long end) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.zrevrangeWithScores(key, start, end);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: spring-projects/spring-data-redis

@Override
public Set<Tuple> zRevRangeWithScores(byte[] key, long start, long end) {
  Assert.notNull(key, "Key must not be null!");
  try {
    if (isPipelined()) {
      pipeline(connection.newJedisResult(connection.getRequiredPipeline().zrevrangeWithScores(key, start, end),
          JedisConverters.tupleSetToTupleSet()));
      return null;
    }
    if (isQueueing()) {
      transaction(connection.newJedisResult(connection.getRequiredTransaction().zrevrangeWithScores(key, start, end),
          JedisConverters.tupleSetToTupleSet()));
      return null;
    }
    return JedisConverters.toTupleSet(connection.getJedis().zrevrangeWithScores(key, start, end));
  } catch (Exception ex) {
    throw convertJedisAccessException(ex);
  }
}

代码示例来源:origin: jwpttcg66/NettyGameServer

/**
 * 获取所有成员及分数
 * @param key
 */
public Set<Tuple> zAllMemberWithScore(String key){
  Jedis jedis = null;
  boolean success = true;
  Set<Tuple> set = null;
  try {
    jedis = jedisPool.getResource();
    set = jedis.zrevrangeWithScores(key, 0, -1);
  } catch (Exception e) {
    success = false;
    releasBrokenReidsSource(jedis, key, "zAllMemberWithScore", e, false);
  } finally {
    releaseReidsSource(success, jedis);
  }
  
  return set;
}

代码示例来源:origin: io.leopard/leopard-redis

@Override
  public Object execute(Jedis jedis) {
    return jedis.zrevrangeWithScores(key, start, end);
  }
});

代码示例来源:origin: yrain/smart-cache

@Override
  Set<redis.clients.jedis.Tuple> doInJedis(Jedis jedis) {
    return jedis.zrevrangeWithScores(key, start, end);
  }
});

代码示例来源:origin: tangyanbo/springmore

@Override
  public Set<Tuple> action(Jedis jedis) {
    return jedis.zrevrangeWithScores(key, start, end);
  }
});

代码示例来源:origin: yrain/smart-cache

@Override
  Set<redis.clients.jedis.Tuple> doInJedis(Jedis jedis) {
    return jedis.zrevrangeWithScores(key, start, end);
  }
});

代码示例来源:origin: mindwind/craft-atom

private Map<String, Double> zrevrangewithscores0(Jedis j, String key, long start, long stop) {
  Set<Tuple> set = j.zrevrangeWithScores(key, start, stop);
  Map<String, Double> map = convert4zrangewithscores(set);
  return map;
}

代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis

@Override
public Set<Tuple> zrevrangeWithScores(String key, long start, long end) {
 String command = "zrevrangeWithScores";
 return instrumented(command, () -> delegated.zrevrangeWithScores(key, start, end));
}

代码示例来源:origin: com.netflix.spinnaker.kork/kork-jedis

@Override
public Set<Tuple> zrevrangeWithScores(byte[] key, long start, long end) {
 String command = "zrevrangeWithScores";
 return instrumented(command, () -> delegated.zrevrangeWithScores(key, start, end));
}

代码示例来源:origin: com.github.yamingd.argo/argo-redis

public Set<Tuple> execute(final Jedis conn) throws Exception {
    long start = (page - 1) * limit;
    long end = start + limit;
    return conn.zrevrangeWithScores(SafeEncoder.encode(key), start, end);
  }
});

代码示例来源:origin: apache/servicemix-bundles

@Override
public Set<Tuple> zrevrangeWithScores(final String key, final long start, final long stop) {
 Jedis j = getShard(key);
 return j.zrevrangeWithScores(key, start, stop);
}

代码示例来源:origin: com.netflix.conductor/conductor-redis-persistence

@Override
public Set<Tuple> zrevrangeWithScores(String key, long start, long end) {
 Jedis jedis = null;
  try {
   jedis = jedisPool.getResource();
   return jedis.zrevrangeWithScores(key, start, end);
  } finally {
   if (jedis != null)
    jedis.close();
  }
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public Set<Tuple> zrevrangeWithScores(byte[] key, long start, long end) {
  Jedis jedis = getJedis();
  try {
    return jedis.zrevrangeWithScores(key, start, end);
  } finally {Streams.safeClose(jedis);}
}

代码示例来源:origin: org.nutz/nutz-integration-jedis

public Set<Tuple> zrevrangeWithScores(String key, long start, long end) {
  Jedis jedis = getJedis();
  try {
    return jedis.zrevrangeWithScores(key, start, end);
  } finally {Streams.safeClose(jedis);}
}

相关文章

Jedis类方法