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

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

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

JedisCommands.zrangeByScore介绍

暂无

代码示例

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

public Set<String> zrangeByScore(String key, double maxScore, int count) {
  return dynoClient.zrangeByScore(key, 0, maxScore, 0, count);
}

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

public Set<String> zrangeByScore(String key, double minScore, double maxScore, int count) {
  return dynoClient.zrangeByScore(key, minScore, maxScore, 0, count);
}

代码示例来源:origin: brianfrankcooper/YCSB

@Override
public Status scan(String table, String startkey, int recordcount,
  Set<String> fields, Vector<HashMap<String, ByteIterator>> result) {
 Set<String> keys = jedis.zrangeByScore(INDEX_KEY, hash(startkey),
   Double.POSITIVE_INFINITY, 0, recordcount);
 HashMap<String, ByteIterator> values;
 for (String key : keys) {
  values = new HashMap<String, ByteIterator>();
  read(table, key, fields, values);
  result.add(values);
 }
 return Status.OK;
}

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

public Set<String> zrangeByScore(String key, double minScore, double maxScore, int count) {
  return dynoClient.zrangeByScore(key, minScore, maxScore, 0, count);
}

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

public Set<String> zrangeByScore(String key, double maxScore, int count) {
  return dynoClient.zrangeByScore(key, 0, maxScore, 0, count);
}

代码示例来源:origin: Netflix/dyno-queues

private Set<String> peekIds(int offset, int count) {
  return execute("peekIds", myQueueShard, () -> {
    double now = Long.valueOf(clock.millis() + 1).doubleValue();
    Set<String> scanned = quorumConn.zrangeByScore(myQueueShard, 0, now, offset, count);
    return scanned;
  });
}

代码示例来源:origin: com.netflix.spinnaker.clouddriver/cats-dynomite

() -> redisClientDelegate.withCommandsClient(client -> {
  Set<String> oldKeys = client.zrangeByScore(WORKING_SET, "-inf", score(NOW));
  for (String key : oldKeys) {
  return new ArrayList<>(client.zrangeByScore(WAITING_SET, "-inf", score(NOW)));
 })
);

相关文章

微信公众号

最新文章

更多