io.vertx.redis.RedisClient.zremrangebyscore()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(170)

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

RedisClient.zremrangebyscore介绍

[英]Remove all members in a sorted set within the given scores
[中]删除给定分数内已排序集合中的所有成员

代码示例

代码示例来源:origin: io.vertx/vertx-rx-java

/**
 * Remove all members in a sorted set within the given scores
 * @param key Key string
 * @param min Pattern defining a minimum value
 * @param max Pattern defining a maximum value
 * @param handler 
 * @return 
 */
public io.vertx.rxjava.redis.RedisClient zremrangebyscore(String key, String min, String max, Handler<AsyncResult<Long>> handler) { 
 delegate.zremrangebyscore(key, min, max, handler);
 return this;
}

代码示例来源:origin: vert-x3/vertx-rx

/**
 * Remove all members in a sorted set within the given scores
 * @param key Key string
 * @param min Pattern defining a minimum value
 * @param max Pattern defining a maximum value
 * @param handler 
 * @return 
 */
public io.vertx.rxjava.redis.RedisClient zremrangebyscore(String key, String min, String max, Handler<AsyncResult<Long>> handler) { 
 delegate.zremrangebyscore(key, min, max, handler);
 return this;
}

代码示例来源:origin: org.swisspush/redisques

/**
 * Remove queues from the sorted set that are timestamped before a limit time.
 *
 * @param limit limit timestamp
 */
private void removeOldQueues(long limit) {
  log.debug("Cleaning old queues");
  redisClient.zremrangebyscore(getQueuesKey(), "-inf", String.valueOf(limit), event -> {
  });
}

相关文章

RedisClient类方法