public interface IZSetCache<T>
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(String key,
Collection<T> values,
double score)
添加多个
|
void |
add(String key,
T value,
double score)
添加
|
void |
clear(String key)
清空 key 集合
|
Double |
incrementScore(String key,
T value,
double delta)
添加,分数递增
|
Long |
intersectAndStore(String key,
Collection<String> otherKeys,
String destKey)
获取 key 和 otherKeys 值的交集,并存在 destKey 键下
|
Long |
intersectAndStore(String key,
Collection<String> otherKeys,
String destKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate)
获取 key 和 otherKeys 值的交集并联合排序,并存在 destKey 键下
|
Long |
intersectAndStore(String key,
Collection<String> otherKeys,
String destKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights)
获取 key 和 otherKeys 值的交集并联合排序,并存在 destKey 键下
|
Long |
intersectAndStore(String key,
String otherKey,
String destKey)
获取 key 和 otherKey 值的交集,并存在 destKey 键下
|
Set<T> |
range(String key,
long start,
long end)
获取范围值
|
Set<T> |
rangeByScore(String key,
double min,
double max)
获取分数在 [min, max] 之间的值
|
Set<T> |
rangeByScore(String key,
double min,
double max,
long offset,
long count)
获取 count 个 分数在 [min, max] 之间的值
|
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> |
rangeByScoreWithScores(String key,
double min,
double max)
获取分数在 [min, max] 之间的值和分数
|
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> |
rangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count)
获取 count 个 分数在 [min, max] 之间的值和分数
|
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> |
rangeWithScores(String key,
long start,
long end)
获取范围值和分数
|
Long |
rank(String key,
T value)
获取排名
|
Long |
remove(String key,
Collection<T> values)
删除值在 values 中的所有元素,返回删除元素的个数
|
void |
remove(String key,
T value)
删除值为 value 的所有元素
|
Long |
removeRange(String key,
long start,
long end)
删除 [start, end] 之间的值
|
Long |
removeRangeByScore(String key,
double min,
double max)
删除分数在 [min, max] 之间的值
|
Set<T> |
reverseRange(String key,
long start,
long end)
获取范围值,倒序排名
|
Set<T> |
reverseRangeByScore(String key,
double min,
double max)
获取分数在 [min, max] 之间的值,倒序排名
|
Set<T> |
reverseRangeByScore(String key,
double min,
double max,
long offset,
long count)
获取 count 个 分数在 [min, max] 之间的值,倒序排名
|
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> |
reverseRangeByScoreWithScores(String key,
double min,
double max)
获取分数在 [min, max] 之间的值和分数,倒序排名
|
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> |
reverseRangeByScoreWithScores(String key,
double min,
double max,
long offset,
long count)
获取 count 个 分数在 [min, max] 之间的值和分数,倒序排名
|
Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> |
reverseRangeWithScores(String key,
long start,
long end)
获取范围值和分数,倒序排名
|
Long |
reverseRank(String key,
T value)
获取倒序排名
|
Set<T> |
scan(String key,
String pattern)
获取满足pattern表达式条件的所有元素
|
Double |
score(String key,
T value)
获取集合 value 的分数
|
Long |
size(String key)
返回集合的长度
|
Long |
unionAndStore(String key,
Collection<String> otherKeys,
String destKey)
获取 key 和 otherKeys 值的并集,并存在 destKey 键下
|
Long |
unionAndStore(String key,
Collection<String> otherKeys,
String destKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate)
获取 key 和 otherKeys 值的并集并联合排序,并存在 destKey 键下
|
Long |
unionAndStore(String key,
Collection<String> otherKeys,
String destKey,
org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate,
org.springframework.data.redis.connection.RedisZSetCommands.Weights weights)
获取 key 和 otherKeys 值的并集并联合排序,并存在 destKey 键下
|
Long |
unionAndStore(String key,
String otherKey,
String destKey)
获取 key 和 otherKey 值的并集,并存在 destKey 键下
|
void add(String key, Collection<T> values, double score)
key - 键values - 集合值score - 分数Double incrementScore(String key, T value, double delta)
key - 键value - 值delta - 递增值Long remove(String key, Collection<T> values)
key - 键values - 集合值Set<T> range(String key, long start, long end)
key - 键start - 开始位置end - 结束位置Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> rangeWithScores(String key, long start, long end)
key - 键start - 开始位置end - 结束位置Set<T> rangeByScore(String key, double min, double max)
key - 键min - 最小分max - 最大分Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> rangeByScoreWithScores(String key, double min, double max)
key - 键min - 最小分max - 最大分Set<T> rangeByScore(String key, double min, double max, long offset, long count)
key - 键min - 最小分max - 最大分offset - offsetcount - 数量Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> rangeByScoreWithScores(String key, double min, double max, long offset, long count)
key - 键min - 最小分max - 最大分offset - offsetcount - 数量Set<T> reverseRange(String key, long start, long end)
key - 键start - 开始位置end - 结束位置Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> reverseRangeWithScores(String key, long start, long end)
key - 键start - 开始位置end - 结束位置Set<T> reverseRangeByScore(String key, double min, double max)
key - 键min - 最小分max - 最大分Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> reverseRangeByScoreWithScores(String key, double min, double max)
key - 键min - 最小分max - 最大分Set<T> reverseRangeByScore(String key, double min, double max, long offset, long count)
key - 键min - 最小分max - 最大分offset - offsetcount - 数量Set<org.springframework.data.redis.core.ZSetOperations.TypedTuple<Object>> reverseRangeByScoreWithScores(String key, double min, double max, long offset, long count)
key - 键min - 最小分max - 最大分offset - offsetcount - 数量Long removeRange(String key, long start, long end)
key - 键start - 开始位置end - 结束位置Long removeRangeByScore(String key, double min, double max)
key - 键min - 最小分max - 最大分Long unionAndStore(String key, String otherKey, String destKey)
key - 键otherKey - 其他键destKey - 目标键Long unionAndStore(String key, Collection<String> otherKeys, String destKey)
key - 键otherKeys - 其他键集合destKey - 目标键Long unionAndStore(String key, Collection<String> otherKeys, String destKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate)
key - 键otherKeys - 其他键集合destKey - 目标键aggregate - RedisZSetCommands.AggregateLong unionAndStore(String key, Collection<String> otherKeys, String destKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights)
key - 键otherKeys - 其他键集合destKey - 目标键aggregate - RedisZSetCommands.Aggregateweights - RedisZSetCommands.WeightsLong intersectAndStore(String key, String otherKey, String destKey)
key - 键otherKey - 其他键destKey - 目标键Long intersectAndStore(String key, Collection<String> otherKeys, String destKey)
key - 键otherKeys - 其他键集合destKey - 目标键Long intersectAndStore(String key, Collection<String> otherKeys, String destKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate)
key - 键otherKeys - 其他键集合destKey - 目标键aggregate - RedisZSetCommands.AggregateLong intersectAndStore(String key, Collection<String> otherKeys, String destKey, org.springframework.data.redis.connection.RedisZSetCommands.Aggregate aggregate, org.springframework.data.redis.connection.RedisZSetCommands.Weights weights)
key - 键otherKeys - 其他键集合destKey - 目标键aggregate - RedisZSetCommands.Aggregateweights - RedisZSetCommands.WeightsSet<T> scan(String key, String pattern)
key - 键pattern - 表达式void clear(String key)
Copyright © 2021. All rights reserved.