Java Code Examples for redis.clients.jedis.Jedis#zrevrangeByScore()
The following examples show how to use
redis.clients.jedis.Jedis#zrevrangeByScore() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JedisUtils.java From fw-spring-cloud with Apache License 2.0 | 5 votes |
/** * <p> * 通过key返回指定score内zset中的value * </p> * * @param key * @param max * @param min * @return */ public Set<String> zrangebyscore(String key, String max, String min) { Jedis jedis = null; Set<String> res = null; try { jedis = jedisPool.getResource(); res = jedis.zrevrangeByScore(key, max, min); } catch (Exception e) { log.error(e.getMessage()); } finally { returnResource(jedisPool, jedis); } return res; }
Example 2
Source File: JedisUtils.java From fw-spring-cloud with Apache License 2.0 | 5 votes |
/** * <p> * 通过key返回指定score内zset中的value * </p> * * @param key * @param max * @param min * @return */ public Set<String> zrangeByScore(String key, double max, double min) { Jedis jedis = null; Set<String> res = null; try { jedis = jedisPool.getResource(); res = jedis.zrevrangeByScore(key, max, min); } catch (Exception e) { log.error(e.getMessage()); } finally { returnResource(jedisPool, jedis); } return res; }
Example 3
Source File: RedisServiceImpl.java From ace-cache with Apache License 2.0 | 5 votes |
@Override public Set<String> zrangebyscore(String key, String max, String min) { Jedis jedis = null; Set<String> res = null; try { jedis = pool.getResource(); res = jedis.zrevrangeByScore(key, max, min); } catch (Exception e) { LOGGER.error(e.getMessage()); } finally { returnResource(pool, jedis); } return res; }
Example 4
Source File: RedisServiceImpl.java From ace-cache with Apache License 2.0 | 5 votes |
@Override public Set<String> zrangeByScore(String key, double max, double min) { Jedis jedis = null; Set<String> res = null; try { jedis = pool.getResource(); res = jedis.zrevrangeByScore(key, max, min); } catch (Exception e) { LOGGER.error(e.getMessage()); } finally { returnResource(pool, jedis); } return res; }
Example 5
Source File: DefaultRedis.java From craft-atom with MIT License | 4 votes |
private Set<String> zrevrangebyscore0(Jedis j, String key, double max, double min) { return j.zrevrangeByScore(key, max, min); }
Example 6
Source File: DefaultRedis.java From craft-atom with MIT License | 4 votes |
private Set<String> zrevrangebyscore_string(Jedis j, String key, String max, String min) { return j.zrevrangeByScore(key, max, min); }
Example 7
Source File: DefaultRedis.java From craft-atom with MIT License | 4 votes |
private Set<String> zrevrangebyscore_offset_count(Jedis j, String key, double max, double min, int offset, int count) { return j.zrevrangeByScore(key, max, min, offset, count); }
Example 8
Source File: DefaultRedis.java From craft-atom with MIT License | 4 votes |
private Set<String> zrevrangebyscore_offset_count_string(Jedis j, String key, String max, String min, int offset, int count) { return j.zrevrangeByScore(key, max, min, offset, count); }