本文整理了Java中org.springframework.data.redis.core.ZSetOperations.rangeByScoreWithScores()
方法的一些代码示例,展示了ZSetOperations.rangeByScoreWithScores()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZSetOperations.rangeByScoreWithScores()
方法的具体详情如下:
包路径:org.springframework.data.redis.core.ZSetOperations
类名称:ZSetOperations
方法名:rangeByScoreWithScores
[英]Get set of Tuples where score is between min and max from sorted set.
[中]从排序集中获取得分介于最小值和最大值之间的元组集。
代码示例来源:origin: spring-projects/spring-data-redis
@Override
public Set<TypedTuple<V>> rangeByScoreWithScores(double min, double max) {
return ops.rangeByScoreWithScores(getKey(), min, max);
}
代码示例来源:origin: whvcse/EasyWeb
/**
* 根据Score值查询集合元素, 从小到大排序
*
* @param key
* @param min 最小值
* @param max 最大值
* @return
*/
public Set<TypedTuple<String>> zRangeByScoreWithScores(String key,
double min, double max) {
return redisTemplate.opsForZSet().rangeByScoreWithScores(key, min, max);
}
代码示例来源:origin: whvcse/EasyWeb
/**
* @param key
* @param min
* @param max
* @param start
* @param end
* @return
*/
public Set<TypedTuple<String>> zRangeByScoreWithScores(String key,
double min, double max, long start, long end) {
return redisTemplate.opsForZSet().rangeByScoreWithScores(key, min, max,
start, end);
}
代码示例来源:origin: org.springframework.data/spring-data-redis
@Override
public Set<TypedTuple<V>> rangeByScoreWithScores(double min, double max) {
return ops.rangeByScoreWithScores(getKey(), min, max);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public Set<TypedTuple<V>> rangeByScoreWithScores(double min, double max) {
return ops.rangeByScoreWithScores(getKey(), min, max);
}
内容来源于网络,如有侵权,请联系作者删除!