public class ZsetTypeHandler extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
Long |
add(String key,
Map<Double,String> map)
新增字符串存在则更新
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
|
Long |
add(String key,
String... values)
新增字符串存在则更新
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
|
Boolean |
add(String key,
String value,
double score)
新增字符串
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
|
Long |
addAsObj(String key,
Map<Double,Object> map)
新增对象存在则更新
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
|
Long |
addAsObj(String key,
Object... values)
新增对象存在则更新
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
|
Boolean |
addAsObj(String key,
Object value,
double score)
新增对象
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
|
Set<String> |
ascRange(String key,
Long startIndex,
Long endIndex)
正序获取范围内的字符串
ZRANGE key start stop [WITHSCORES]
|
Set |
ascRangeAsObj(String key,
Long startIndex,
Long endIndex)
正序获取范围内的对象
ZRANGE key start stop [WITHSCORES]
|
Set<String> |
ascRangeByLex(String key,
Long startSortIndex,
boolean isContainsStart,
Long endSortIndex,
boolean isContainsEnd)
正序获取范围内的字符串
ZRANGEBYLEX key min max [LIMIT offset count]
|
Set<String> |
ascRangeByLex(String key,
Long startSortIndex,
boolean isContainsStart,
Long endSortIndex,
boolean isContainsEnd,
Integer count,
Integer offset)
正序获取范围内的字符串
ZRANGEBYLEX key min max [LIMIT offset count]
|
Set |
ascRangeByLexAsObj(String key,
Long startSortIndex,
boolean isContainsStart,
Long endSortIndex,
boolean isContainsEnd)
正序获取范围内的对象
ZRANGEBYLEX key min max [LIMIT offset count]
|
Set |
ascRangeByLexAsObj(String key,
Long startSortIndex,
boolean isContainsStart,
Long endSortIndex,
boolean isContainsEnd,
Integer count,
Integer offset)
正序获取范围内的对象
ZRANGEBYLEX key min max [LIMIT offset count]
|
Long |
ascRemoveRange(String key,
Long startSortIndex,
Long endSortIndex)
正序移除范围内的字符串
ZREMRANGEBYRANK key start stop
|
Long |
ascRemoveRangeAsObj(String key,
Long startSortIndex,
Long endSortIndex)
正序移除范围内的对象
ZREMRANGEBYRANK key start stop
|
Long |
count(String key,
Double min,
Double max)
获取最小-最大之间分数的字符串数量
ZCOUNT key min max
|
Long |
countAsObj(String key,
Double min,
Double max)
获取最小-最大之间分数的对象数量
ZCOUNT key min max
|
Set<String> |
descRange(String key,
Long startSortIndex,
Long endSortIndex)
倒序获取范围内的字符串
ZRANGE key start stop [WITHSCORES]
|
Set |
descRangeAsObj(String key,
Long startSortIndex,
Long endSortIndex)
倒序获取范围内的对象
ZRANGE key start stop [WITHSCORES]
|
Long |
descRemoveRange(String key,
Long startSortIndex,
Long endSortIndex)
倒序移除范围内的字符串
ZREMRANGEBYRANK key start stop
|
Long |
descRemoveRangeAsObj(String key,
Long startSortIndex,
Long endSortIndex)
倒序移除范围内的对象
ZREMRANGEBYRANK key start stop
|
Set<String> |
getAll(String key)
获取集合字符串
ZRANGE key start stop [WITHSCORES]
|
Set |
getAllAsObj(String key)
获取集合对象
ZRANGE key start stop [WITHSCORES]
|
Map<Double,String> |
getAllByScore(String key)
获取集合字符串(带分数)
ZRANGE key start stop [WITHSCORES]
|
Map<Double,Object> |
getAllByScoreAsObj(String key)
获取集合对象(带分数)
ZRANGE key start stop [WITHSCORES]
|
static ZsetTypeHandler |
getInstance(org.springframework.data.redis.core.RedisTemplate<String,Object> redisTemplate,
org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate)
获取实例
|
org.springframework.data.redis.core.RedisTemplate |
getRedisTemplate()
获取spring redis模板
|
org.springframework.data.redis.core.StringRedisTemplate |
getStringRedisTemplate()
获取spring string redis模板
|
Double |
incrementScore(String key,
String value,
Double score)
字符串分数自增
ZINCRBY key increment member
|
Double |
incrementScoreAsObj(String key,
Object value,
Double score)
对象分数自增
ZINCRBY key increment member
|
Set<String> |
intersect(String key,
String... otherKys)
取字符串交集
|
Long |
intersectAndStore(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
Double weight,
String... otherKys)
取字符串交集并存储到新的集合
ZINTERSTORE destination numkeys key [key ...]
|
Long |
intersectAndStore(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights,
String... otherKys)
取字符串交集并存储到新的集合
ZINTERSTORE destination numkeys key [key ...]
|
Long |
intersectAndStore(String key,
String storeKey,
String... otherKys)
取字符串交集并存储到新的集合
ZINTERSTORE destination numkeys key [key ...]
|
Long |
intersectAndStoreAsObj(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights,
String... otherKys)
取对象交集并存储到新的集合
ZINTERSTORE destination numkeys key [key ...]
|
Long |
intersectAndStoreAsObj(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
String... otherKys)
取对象交集并存储到新的集合
ZINTERSTORE destination numkeys key [key ...]
|
Long |
intersectAndStoreAsObj(String key,
String storeKey,
String... otherKys)
取对象交集并存储到新的集合
ZINTERSTORE destination numkeys key [key ...]
|
Set |
intersectAsObj(String key,
String... otherKys)
取对象交集
|
Map<Double,String> |
intersectByScore(String key,
String... otherKys)
取字符串交集(带分数)
|
Map<Double,Object> |
intersectByScoreAsObj(String key,
String... otherKys)
取对象交集(带分数)
|
Set<String> |
rangeByScore(String key,
Double min,
Double max,
Long count,
Long offset)
获取范围内的字符串
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
|
Map<Double,String> |
rangeByScore(String key,
Long startSortIndex,
Long endSortIndex)
获取范围内的字符串(带分数)
ZRANGE key start stop [WITHSCORES]
|
Set |
rangeByScoreAsObj(String key,
Double min,
Double max,
Long count,
Long offset)
获取范围内的对象
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
|
Map<Double,Object> |
rangeByScoreAsObj(String key,
Long startSortIndex,
Long endSortIndex)
获取范围内的对象(带分数)
ZRANGE key start stop [WITHSCORES]
|
Map<Double,String> |
rangeByScoreWithScores(String key,
Double min,
Double max)
获取范围内的字符串(带分数)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
|
Map<Double,String> |
rangeByScoreWithScores(String key,
Double min,
Double max,
Long count,
Long offset)
获取范围内的字符串(带分数)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
|
Map<Double,Object> |
rangeByScoreWithScoresAsObj(String key,
Double min,
Double max)
获取范围内的对象(带分数)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
|
Map<Double,Object> |
rangeByScoreWithScoresAsObj(String key,
Double min,
Double max,
Long count,
Long offset)
获取范围内的对象(带分数)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
|
Long |
remove(String key,
String... values)
移除字符串
ZREM key member [member ...]
|
Long |
removeAsObj(String key,
Object... values)
移除对象
ZREM key member [member ...]
|
Long |
removeRangeByScore(String key,
Double min,
Double max)
移除范围内的字符串
ZREMRANGEBYSCORE key min max
|
Long |
removeRangeByScoreAsObj(String key,
Double min,
Double max)
移除范围内的对象
ZREMRANGEBYSCORE key min max
|
Set<String> |
reverseRange(String key,
Long startIndex,
Long endIndex)
反转范围内的字符串
ZREVRANGE key start stop [WITHSCORES]
|
Set |
reverseRangeAsObj(String key,
Long startIndex,
Long endIndex)
反转范围内的对象
ZREVRANGE key start stop [WITHSCORES]
|
Set<String> |
reverseRangeByScore(String key,
Double min,
Double max)
反转范围内的字符串
ZREVRANGE key start stop [WITHSCORES]
|
Map<Double,String> |
reverseRangeByScore(String key,
Long startIndex,
Long endIndex)
反转范围内的字符串(带分数)
ZREVRANGE key start stop [WITHSCORES]
|
Set |
reverseRangeByScoreAsObj(String key,
Double min,
Double max)
反转范围内的对象
ZREVRANGE key start stop [WITHSCORES]
|
Map<Double,Object> |
reverseRangeByScoreAsObj(String key,
Long startIndex,
Long endIndex)
反转范围内的对象(带分数)
ZREVRANGE key start stop [WITHSCORES]
|
Map<Double,String> |
reverseRangeByScoreWithScores(String key,
Double min,
Double max)
反转范围内的字符串(带分数)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
|
Map<Double,String> |
reverseRangeByScoreWithScores(String key,
Double min,
Double max,
Long count,
Long offset)
反转范围内的字符串(带分数)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
|
Map<Double,Object> |
reverseRangeByScoreWithScoresAsObj(String key,
Double min,
Double max)
反转范围内的对象(带分数)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
|
Map<Double,Object> |
reverseRangeByScoreWithScoresAsObj(String key,
Double min,
Double max,
Long count,
Long offset)
反转范围内的对象(带分数)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
|
Long |
reverseSortIndex(String key,
String value)
反转当前字符串排序索引
ZREVRANK key member
|
Long |
reverseSortIndexAsObj(String key,
Object value)
反转当前对象排序索引
ZREVRANK key member
|
org.springframework.data.redis.core.Cursor<org.springframework.data.redis.core.ZSetOperations.TypedTuple<String>> |
scan(String key,
Long count,
String pattern)
匹配字符串
ZSCAN key cursor [MATCH pattern] [COUNT count]
|
org.springframework.data.redis.core.Cursor<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> |
scanAsObj(String key,
Long count,
String pattern)
匹配对象
ZSCAN key cursor [MATCH pattern] [COUNT count]
|
Double |
score(String key,
String value)
当前字符串分数
ZSCORE key member
|
Double |
scoreAsObj(String key,
Object value)
当前对象分数
ZSCORE key member
|
Long |
size(String key)
获取字符串数量
ZCARD key
|
Long |
sizeAsObj(String key)
获取对象数量
ZCARD key
|
Long |
sortIndex(String key,
String value)
获取当前字符串排序索引
ZRANK key member
|
Long |
sortIndexAsObj(String key,
Object value)
获取当前对象排序索引
ZRANK key member
|
Set<String> |
union(String key,
String... otherKys)
取字符串并集
|
Long |
unionAndStore(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
Double weight,
String... otherKys)
取字符串并集并存储到新的集合
ZUNIONSTORE destination numkeys key [key ...]
|
Long |
unionAndStore(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights,
String... otherKys)
取字符串并集并存储到新的集合
ZUNIONSTORE destination numkeys key [key ...]
|
Long |
unionAndStore(String key,
String storeKey,
String... otherKys)
取字符串并集并存储到新的集合
ZUNIONSTORE destination numkeys key [key ...]
|
Long |
unionAndStoreAsObj(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights,
String... otherKys)
取对象并集并存储到新的集合
ZUNIONSTORE destination numkeys key [key ...]
|
Long |
unionAndStoreAsObj(String key,
String storeKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
String... otherKys)
取对象并集并存储到新的集合
ZUNIONSTORE destination numkeys key [key ...]
|
Long |
unionAndStoreAsObj(String key,
String storeKey,
String... otherKys)
取对象并集并存储到新的集合
ZUNIONSTORE destination numkeys key [key ...]
|
Set |
unionAsObj(String key,
String... otherKys)
取对象并集
|
Map<Double,String> |
unionByScore(String key,
String... otherKys)
取字符串并集(带分数)
|
Map<Double,Object> |
unionByScoreAsObj(String key,
String... otherKys)
取对象并集(带分数)
|
public static ZsetTypeHandler getInstance(org.springframework.data.redis.core.RedisTemplate<String,Object> redisTemplate, org.springframework.data.redis.core.StringRedisTemplate stringRedisTemplate)
redisTemplate - 对象模板stringRedisTemplate - 字符串模板public Boolean addAsObj(String key, Object value, double score)
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
key - 键value - 对象score - 排序public Boolean add(String key, String value, double score)
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
key - 键value - 字符串score - 排序public Long addAsObj(String key, Map<Double,Object> map)
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
key - 键map - 对象字典public Long add(String key, Map<Double,String> map)
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
key - 键map - 字符串字典public Long addAsObj(String key, Object... values)
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
key - 键values - 对象public Long add(String key, String... values)
ZADD key [NX|XX] [CH] [INCR] score member [score member ...]
key - 键values - 字符串public Long sizeAsObj(String key)
ZCARD key
key - 键public Long countAsObj(String key, Double min, Double max)
ZCOUNT key min max
key - 键min - 最小分数max - 最大分数public Long count(String key, Double min, Double max)
ZCOUNT key min max
key - 键min - 最小分数max - 最大分数public Set ascRangeAsObj(String key, Long startIndex, Long endIndex)
ZRANGE key start stop [WITHSCORES]
key - 键startIndex - 开始索引endIndex - 结束索引public Set<String> ascRange(String key, Long startIndex, Long endIndex)
ZRANGE key start stop [WITHSCORES]
key - 键startIndex - 开始索引endIndex - 结束索引public Set descRangeAsObj(String key, Long startSortIndex, Long endSortIndex)
ZRANGE key start stop [WITHSCORES]
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Set<String> descRange(String key, Long startSortIndex, Long endSortIndex)
ZRANGE key start stop [WITHSCORES]
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Set ascRangeByLexAsObj(String key, Long startSortIndex, boolean isContainsStart, Long endSortIndex, boolean isContainsEnd)
ZRANGEBYLEX key min max [LIMIT offset count]
key - 键startSortIndex - 起始排序索引isContainsStart - 是否包含起始endSortIndex - 结束排序索引isContainsEnd - 是否包含结束public Set<String> ascRangeByLex(String key, Long startSortIndex, boolean isContainsStart, Long endSortIndex, boolean isContainsEnd)
ZRANGEBYLEX key min max [LIMIT offset count]
key - 键startSortIndex - 起始排序索引isContainsStart - 是否包含起始endSortIndex - 结束排序索引isContainsEnd - 是否包含结束public Set ascRangeByLexAsObj(String key, Long startSortIndex, boolean isContainsStart, Long endSortIndex, boolean isContainsEnd, Integer count, Integer offset)
ZRANGEBYLEX key min max [LIMIT offset count]
key - 键startSortIndex - 起始排序索引isContainsStart - 是否包含起始endSortIndex - 结束排序索引isContainsEnd - 是否包含结束count - 返回数量offset - 偏移量public Set<String> ascRangeByLex(String key, Long startSortIndex, boolean isContainsStart, Long endSortIndex, boolean isContainsEnd, Integer count, Integer offset)
ZRANGEBYLEX key min max [LIMIT offset count]
key - 键startSortIndex - 起始排序索引isContainsStart - 是否包含起始endSortIndex - 结束排序索引isContainsEnd - 是否包含结束count - 返回数量offset - 偏移量public Set rangeByScoreAsObj(String key, Double min, Double max, Long count, Long offset)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数count - 返回数量offset - 偏移量public Set<String> rangeByScore(String key, Double min, Double max, Long count, Long offset)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数count - 返回数量offset - 偏移量public Map<Double,Object> rangeByScoreAsObj(String key, Long startSortIndex, Long endSortIndex)
ZRANGE key start stop [WITHSCORES]
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Map<Double,String> rangeByScore(String key, Long startSortIndex, Long endSortIndex)
ZRANGE key start stop [WITHSCORES]
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Map<Double,Object> rangeByScoreWithScoresAsObj(String key, Double min, Double max)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数public Map<Double,String> rangeByScoreWithScores(String key, Double min, Double max)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数public Map<Double,Object> rangeByScoreWithScoresAsObj(String key, Double min, Double max, Long count, Long offset)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数count - 返回数量offset - 偏移量public Map<Double,String> rangeByScoreWithScores(String key, Double min, Double max, Long count, Long offset)
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数count - 返回数量offset - 偏移量public Set getAllAsObj(String key)
ZRANGE key start stop [WITHSCORES]
key - 键public Set<String> getAll(String key)
ZRANGE key start stop [WITHSCORES]
key - 键public Map<Double,Object> getAllByScoreAsObj(String key)
ZRANGE key start stop [WITHSCORES]
key - 键public Map<Double,String> getAllByScore(String key)
ZRANGE key start stop [WITHSCORES]
key - 键public Long sortIndexAsObj(String key, Object value)
ZRANK key member
key - 键value - 对象public Long sortIndex(String key, String value)
ZRANK key member
key - 键value - 字符串public Double scoreAsObj(String key, Object value)
ZSCORE key member
key - 键value - 对象public Double score(String key, String value)
ZSCORE key member
key - 键value - 字符串public Double incrementScoreAsObj(String key, Object value, Double score)
ZINCRBY key increment member
key - 键value - 对象score - 自增分数public Double incrementScore(String key, String value, Double score)
ZINCRBY key increment member
key - 键value - 字符串score - 自增分数public Long removeAsObj(String key, Object... values)
ZREM key member [member ...]
key - 键values - 对象public Long remove(String key, String... values)
ZREM key member [member ...]
key - 键values - 字符串public Long ascRemoveRangeAsObj(String key, Long startSortIndex, Long endSortIndex)
ZREMRANGEBYRANK key start stop
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Long ascRemoveRange(String key, Long startSortIndex, Long endSortIndex)
ZREMRANGEBYRANK key start stop
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Long descRemoveRangeAsObj(String key, Long startSortIndex, Long endSortIndex)
ZREMRANGEBYRANK key start stop
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Long descRemoveRange(String key, Long startSortIndex, Long endSortIndex)
ZREMRANGEBYRANK key start stop
key - 键startSortIndex - 起始排序索引endSortIndex - 结束排序索引public Long removeRangeByScoreAsObj(String key, Double min, Double max)
ZREMRANGEBYSCORE key min max
key - 键min - 最小分数max - 最大分数public Long removeRangeByScore(String key, Double min, Double max)
ZREMRANGEBYSCORE key min max
key - 键min - 最小分数max - 最大分数public Long intersectAndStoreAsObj(String key, String storeKey, String... otherKys)
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键otherKys - 其他键public Long intersectAndStore(String key, String storeKey, String... otherKys)
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键otherKys - 其他键public Long intersectAndStoreAsObj(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, String... otherKys)
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项otherKys - 其他键public Long intersectAndStore(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights, String... otherKys)
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项weights - 权重选项otherKys - 其他键public Long intersectAndStoreAsObj(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights, String... otherKys)
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项weights - 权重选项otherKys - 其他键public Long intersectAndStore(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, Double weight, String... otherKys)
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项otherKys - 其他键public Map<Double,Object> intersectByScoreAsObj(String key, String... otherKys)
key - 键otherKys - 其他键public Map<Double,String> intersectByScore(String key, String... otherKys)
key - 键otherKys - 其他键public Set intersectAsObj(String key, String... otherKys)
key - 键otherKys - 其他键public Set<String> intersect(String key, String... otherKys)
key - 键otherKys - 其他键public Long unionAndStoreAsObj(String key, String storeKey, String... otherKys)
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键otherKys - 其他键public Long unionAndStore(String key, String storeKey, String... otherKys)
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键otherKys - 其他键public Long unionAndStoreAsObj(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, String... otherKys)
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项otherKys - 其他键public Long unionAndStore(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights, String... otherKys)
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项weights - 权重选项otherKys - 其他键public Long unionAndStoreAsObj(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights, String... otherKys)
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项weights - 权重选项otherKys - 其他键public Long unionAndStore(String key, String storeKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, Double weight, String... otherKys)
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE SUM|MIN|MAX]
key - 键storeKey - 存储键aggregate - 聚合选项otherKys - 其他键public Map<Double,Object> unionByScoreAsObj(String key, String... otherKys)
key - 键otherKys - 其他键public Map<Double,String> unionByScore(String key, String... otherKys)
key - 键otherKys - 其他键public Set unionAsObj(String key, String... otherKys)
key - 键otherKys - 其他键public Set<String> union(String key, String... otherKys)
key - 键otherKys - 其他键public Long reverseSortIndexAsObj(String key, Object value)
ZREVRANK key member
key - 键value - 对象public Long reverseSortIndex(String key, String value)
ZREVRANK key member
key - 键value - 字符串public Set reverseRangeAsObj(String key, Long startIndex, Long endIndex)
ZREVRANGE key start stop [WITHSCORES]
key - 键startIndex - 起始排序索引endIndex - 结束排序索引public Set<String> reverseRange(String key, Long startIndex, Long endIndex)
ZREVRANGE key start stop [WITHSCORES]
key - 键startIndex - 起始排序索引endIndex - 结束排序索引public Set reverseRangeByScoreAsObj(String key, Double min, Double max)
ZREVRANGE key start stop [WITHSCORES]
key - 键min - 最小分数max - 最大分数public Set<String> reverseRangeByScore(String key, Double min, Double max)
ZREVRANGE key start stop [WITHSCORES]
key - 键min - 最小分数max - 最大分数public Map<Double,Object> reverseRangeByScoreAsObj(String key, Long startIndex, Long endIndex)
ZREVRANGE key start stop [WITHSCORES]
key - 键startIndex - 起始排序索引endIndex - 结束排序索引public Map<Double,String> reverseRangeByScore(String key, Long startIndex, Long endIndex)
ZREVRANGE key start stop [WITHSCORES]
key - 键startIndex - 起始排序索引endIndex - 结束排序索引public Map<Double,Object> reverseRangeByScoreWithScoresAsObj(String key, Double min, Double max)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数public Map<Double,String> reverseRangeByScoreWithScores(String key, Double min, Double max)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数public Map<Double,Object> reverseRangeByScoreWithScoresAsObj(String key, Double min, Double max, Long count, Long offset)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数count - 返回数量offset - 偏移量public Map<Double,String> reverseRangeByScoreWithScores(String key, Double min, Double max, Long count, Long offset)
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
key - 键min - 最小分数max - 最大分数count - 返回数量offset - 偏移量public org.springframework.data.redis.core.Cursor<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> scanAsObj(String key, Long count, String pattern)
ZSCAN key cursor [MATCH pattern] [COUNT count]
key - 键count - 数量pattern - 规则public org.springframework.data.redis.core.Cursor<org.springframework.data.redis.core.ZSetOperations.TypedTuple<String>> scan(String key, Long count, String pattern)
ZSCAN key cursor [MATCH pattern] [COUNT count]
key - 键count - 数量pattern - 规则public org.springframework.data.redis.core.RedisTemplate getRedisTemplate()
public org.springframework.data.redis.core.StringRedisTemplate getStringRedisTemplate()
Copyright © 2019. All rights reserved.