- handleBaseException(BaseException) - 类 中的方法top.isopen.commons.springboot.exception.BaseExceptionHandler
-
- hasKey(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
redis 中是否存在,指定 key 的 key-value
- hDelete(String, Object...) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
(批量)删除(key 对应的)hash 中的对应 entryKey-entryValue
注: 1、若 redis 中不存在对应的 key,则返回 0;
2、若要删除的 entryKey,在 key 对应的 hash 中不存在,在 count 不会 +1, 如:
RedisHelper.HashOps.hPut("ds", "name", "邓沙利文");
RedisHelper.HashOps.hPut("ds", "birthday", "1994-02-05");
RedisHelper.HashOps.hPut("ds", "hobby", "女");
则调用 RedisUtil.HashOps.hDelete("ds", "name", "birthday", "hobby", "non-exist-entryKey")
的返回结果为 3
注:若(key 对应的)hash 中的所有 entry 都被删除了,那么该 key 也会被删除
- Helper() - 类 的构造器top.isopen.commons.springboot.helper.RedisHelper.Helper
-
- hExists(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
查看(key 对应的)hash中,是否存在 entryKey 对应的 entry
注:若 redis 中不存在 key,则返回 false。
- hGet(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取到 key 对应的 hash 里面的对应字段的值
注: 若 redis 中不存在对应的 key,则返回 null。
- hGetAll(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取到 key 对应的 hash(即:获取到 key 对应的 Map)
注:若 redis 中不存在对应的 key,则返回一个没有任何 entry 的空的 Map(而不是返回 null)。
- hIncrBy(String, Object, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
增/减(hash中的某个entryValue值) 整数
注: 负数则为减。
- hIncrByFloat(String, Object, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
增/减(hash中的某个entryValue值) 浮点数
注: 负数则为减。
- hKeys(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)hash中的所有entryKey
注: 若key不存在,则返回的是一个空的Set(,而不是返回null)
- hMultiGet(String, Collection<Object>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
批量获取(key 对应的)hash 中的 entryKey 的 entryValue
注:若 hash 中对应的 entryKey 不存在,那么返回的对应的 entryValue 值为 null
注:redis 中 key 不存在,那么返回的 List 中,每个元素都为 null。
- hPut(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
向 key 对应的 hash 中,增加一个键值对 entryKey-entryValue
注:同一个 hash 里面,若已存在相同的 entryKey,那么此操作将丢弃原来的 entryKey-entryValue,
而使用新的 entryKey-entryValue。
- hPutAll(String, Map<String, String>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
向 key 对应的 hash 中,增加 maps(即: 批量增加 entry 集)
注:同一个 hash 里面,若已存在相同的 entryKey,那么此操作将丢弃原来的 entryKey-entryValue,
而使用新的 entryKey-entryValue
- hPutIfAbsent(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
当 key 对应的 hash 中,不存在 entryKey 时,才(向 key 对应的 hash 中)增加 entryKey-entryValue
否者,不进行任何操作
- hScan(String, ScanOptions) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
根据options匹配到(key对应的)hash中的对应的entryKey, 并返回对应的entry集
注: ScanOptions实例的创建方式举例:
1、ScanOptions.NONE
2、ScanOptions.scanOptions().match("n??
- hSize(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)hash中的所有entry的数量
注: 若redis中不存在对应的key, 则返回值为0
- humpToUnderline(String) - 类 中的静态方法top.isopen.commons.springboot.util.NameUtil
-
驼峰转下划线
- hValues(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)hash中的所有entryValue
注: 若key不存在,则返回的是一个空的List(,而不是返回null)
- lIndex(String, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
通过索引index, 获取(key对应的)list中的元素
注: 若key不存在 或 index超出(key对应的)list的索引范围,那么返回null
- lLeftPop(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
【非阻塞队列】 从左侧移出(key对应的)list中的第一个元素, 并将该元素返回
注: 此方法是非阻塞的, 即: 若(key对应的)list中的所有元素都被pop移出了,此时,再进行pop的话,会立即返回null
注: 此方法是非阻塞的, 即: 若redis中不存在对应的key,那么会立即返回null
注: 若将(key对应的)list中的所有元素都pop完了,那么该key会被删除
- lLeftPop(String, long, TimeUnit) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
【阻塞队列】 从左侧移出(key对应的)list中的第一个元素, 并将该元素返回
注: 此方法是阻塞的, 即: 若(key对应的)list中的所有元素都被pop移出了,此时,再进行pop的话,
会阻塞timeout这么久,然后返回null
注: 此方法是阻塞的, 即: 若redis中不存在对应的key,那么会阻塞timeout这么久,然后返回null
注: 若将(key对应的)list中的所有元素都pop完了,那么该key会被删除
提示: 若阻塞过程中, 目标key-list出现了,且里面有item了,那么会立马停止阻塞, 进行元素移出并返回
- lLeftPush(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从左端推入元素进列表
注: 若redis中不存在对应的key, 那么会自动创建
- lLeftPush(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
若 key 对应的 list 中存在 pivot 项, 那么将 item 放入第一个 pivot 项前(即:放在第一个pivot项左边);
若 key 对应的 list 中不存在 pivot 项, 那么不做任何操作, 直接返回 -1。
- lLeftPushAll(String, String...) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从左端批量推入元素进列表
注: 若redis中不存在对应的key, 那么会自动创建
注: 这一批item中,先push左侧的, 后push右侧的
- lLeftPushAll(String, Collection<String>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从左端批量推入元素进列表
注: 若redis中不存在对应的key, 那么会自动创建
注: 这一批item中,那个item先从Collection取出来,就先push哪个
- lLeftPushIfPresent(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
如果redis中存在key, 则从左端批量推入元素进列表;
否则,不进行任何操作
- LockParameter - top.isopen.commons.springboot.lock中的类
-
- LockParameter(RedLock, JoinPoint) - 类 的构造器top.isopen.commons.springboot.lock.LockParameter
-
- LockParameter(RedLocks, JoinPoint) - 类 的构造器top.isopen.commons.springboot.lock.LockParameter
-
- lRange(String, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)list中索引在[start, end]之间的item集
注: 含start、含end。
- lRemove(String, long, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
删除(key对应的)list中,前expectCount个值等于item的项
注: 若expectCount == 0, 则表示删除list中所有的值等于item的项.
- lRightPop(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
- lRightPop(String, long, TimeUnit) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
- lRightPopAndLeftPush(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
【非阻塞队列】 从sourceKey对应的sourceList右侧移出一个item, 并将这个item推
入(destinationKey对应的)destinationList的左侧
注: 若sourceKey对应的list中没有item了,则立马认为(从sourceKey对应的list中pop出来的)item为null,
null并不会往destinationKey对应的list中push。
- lRightPopAndLeftPush(String, String, long, TimeUnit) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
【阻塞队列】 从sourceKey对应的sourceList右侧移出一个item, 并将这个item推
入(destinationKey对应的)destinationList的左侧
注: 若sourceKey对应的list中没有item了,则阻塞等待, 直到能从sourceList中移出一个非null的item(或等待时长超时);
case1: 等到了一个非null的item, 那么继续下面的push操作,并返回这个item。
- lRightPush(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
- lRightPush(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
- lRightPushAll(String, String...) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
- lRightPushAll(String, Collection<String>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
与#lLeftPushAll(String, Collection)类比即可, 不过是从list右侧推入元素
- lRightPushIfPresent(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
- lSet(String, long, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
设置(key对应的)list中对应索引位置index处的元素为item
注: 若key不存在,则会抛出org.springframework.data.redis.RedisSystemException
注: 若索引越界,也会抛出org.springframework.data.redis.RedisSystemException
- lSize(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)list的size
注: 当key不存在时,获取到的size为0.
- lTrim(String, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
裁剪(即: 对list中的元素取交集。)
- lWholeList(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)list
- sAdd(String, String...) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
向(key对应的)set中添加items
注: 若key不存在,则会自动创建。
- sDifference(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取 (key对应的)Set 减去 (otherKey对应的)Set 的差集
注: 如果被减数key不存在, 那么结果为空的集合(,而不是null)
注: 如果被减数key存在,但减数key不存在, 那么结果即为(被减数key对应的)Set
- sDifference(String, Collection<String>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取 (key对应的)Set 减去 (otherKeys对应的)Sets 的差集
注: 如果被减数key不存在, 那么结果为空的集合(,而不是null)
注: 如果被减数key存在,但减数key不存在, 那么结果即为(被减数key对应的)Set
提示: 当有多个减数时, 被减数先减去哪一个减数,后减去哪一个减数,是无所谓的,是不影响最终结果的。
- sDifferenceAndStore(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取 (key对应的)Set 减去 (otherKey对应的)Set 的差集, 并将结果add到storeKey对应的Set中。
- sDifferenceAndStore(String, Collection<String>, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取 (key对应的)Set 减去 (otherKey对应的)Set 的差集, 并将结果add到storeKey对应的Set中。
- sDistinctRandomMembers(String, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从key对应的set中随机获取count个项
注: 若count >= set的size, 那么返回的即为这个key对应的set。
- set(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
设置 key-value
注:若已存在相同的 key, 那么原来的 key-value 会被丢弃。
- setAlgorithmName(String) - 类 中的静态方法top.isopen.commons.springboot.util.PasswordUtil
-
- setApplicationContext(ApplicationContext) - 类 中的方法top.isopen.commons.springboot.helper.ApplicationContextHelper
-
- setBit(String, long, boolean) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
处理 redis 中 key 对应的 value 值, 将第 offset 位的值, 设置为 1 或 0。
- setEx(String, String, long, TimeUnit) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
设置 key-value
注:若已存在相同的 key,那么原来的 key-value 会被丢弃
注:原子操作
- setHashIterations(int) - 类 中的静态方法top.isopen.commons.springboot.util.PasswordUtil
-
- setIfAbsent(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
若不存在 key 时,向 redis 中添加 key-value, 返回成功/失败。
- setIfAbsent(String, String, long, TimeUnit) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
若不存在 key 时, 向 redis 中添加一个(具有超时时长的)key-value, 返回成功/失败。
- setRandomNumberGenerator(RandomNumberGenerator) - 类 中的静态方法top.isopen.commons.springboot.util.PasswordUtil
-
- setRange(String, String, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从(redis 中 key 对应的)value 的 offset 位置起(包含该位置),用 replaceValue 替换对应长度的值。
- SFunction<T,R> - top.isopen.commons.springboot.repository.support中的接口
-
FunctionalInterface 用来作为 repository 中的函数式操作
OnlineModel::getStatus top.isopen.commons.springboot.model.OnlineModel#getStatus
- sIntersect(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)Set的交集
注: 若不存在任何交集,那么返回空的集合(, 而不是null)
注: 若其中一个key不存在(或两个key都不存在),那么返回空的集合(, 而不是null)
- sIntersect(String, Collection<String>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取多个(key对应的)Set的交集
注: 若不存在任何交集,那么返回空的集合(, 而不是null)
注: 若>=1个key不存在,那么返回空的集合(, 而不是null)
- sIntersectAndStore(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)Set的交集, 并将结果add到storeKey对应的Set中。
- sIntersectAndStore(String, Collection<String>, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取多个(key对应的)Set的交集, 并将结果add到storeKey对应的Set中。
- sIsMember(String, Object) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
判断(key对应的)set中是否含有item
注: 若key不存在,则返回false。
- size(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取到 key 对应的 value 的长度。
- sMembers(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取key对应的set
注: 若key不存在, 则返回的是空的set(, 而不是null)
- sMove(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
将(sourceKey对应的)sourceSet中的元素item, 移动到(destinationKey对应的)destinationSet中
注: 当sourceKey不存在时, 返回false
注: 当item不存在时, 返回false
注: 若destinationKey不存在, 那么在移动时会自动创建
注: 若已经将(sourceKey对应的)set中的项move出去完了,那么对应的sourceKey会被删除。
- sPop(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从(key对应的)set中随机移出一个item, 并返回这个item
注: 因为set是无序的,所以移出的这个item,是随机的; 并且,哪怕
是数据一样的set,多次测试移出操作,移除的元素也是随机的。
- sRandomMember(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从key对应的set中随机获取一项
- sRandomMembers(String, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从key对应的set中获取count次随机项(, set中的同一个项可能被多次获取)
注: count可大于set的size。
- sRemove(String, Object...) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从(key对应的)set中删除items
注: 若key不存在, 则返回0。
- sScan(String, ScanOptions) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
根据options匹配到(key对应的)set中的对应的item, 并返回对应的item集
注: ScanOptions实例的创建方式举例:
1、ScanOptions.NONE
2、ScanOptions.scanOptions().match("n??
- sSize(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)set中的元素个数
注: 若key不存在,则返回0
- sUnion(String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)Set的并集
注: 并集中的元素也是唯一的,这是Set保证的。
- sUnion(String, Collection<String>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)Set的并集
注: 并集中的元素也是唯一的,这是Set保证的。
- sUnionAndStore(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)Set的并集, 并将结果add到storeKey对应的Set中。
- sUnionAndStore(String, Collection<String>, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)Set的并集, 并将结果add到storeKey对应的Set中。
- zAdd(String, String, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
向(key对应的)zset中添加(item, score)
注: item为entryKey成员项, score为entryValue分数值。
- zAdd(String, Set<ZSetOperations.TypedTuple<String>>) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
批量添加entry-
注: 若entry
- 集中存在item相同的项(, score不一样),那么redis在执行真正的批量add操作前,会
将其中一个item过滤掉。
- zCount(String, double, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
统计(key对应的zset中)score处于[minScore, maxScore]中的item的个数
- zIncrementScore(String, String, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
增/减 (key对应的zset中,)item的分数值
- zIntersectAndStore(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)ZSet的交集, 并将结果add到storeKey对应的ZSet中。
- zIntersectAndStore(String, Collection<String>, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取多个(key对应的)ZSet的交集, 并将结果add到storeKey对应的ZSet中。
- zRange(String, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
根据索引位置, 获取(key对应的)zset中排名处于[start, end]中的item项集
注: 不论是使用正向排名,还是使用反向排名, 使用此方法时, 应保证 startIndex代表的元素的
位置在endIndex代表的元素的位置的前面, 如:
示例一: .zRange("name", 0, 2);
示例二: .zRange("site", -2, -1);
示例三: .zRange("foo", 0, -1);
注: 若key不存在, 则返回空的集合。
- zRangeByScore(String, double, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
根据score, 获取(key对应的)zset中分数值处于[minScore, maxScore]中的item项集
注: 若key不存在, 则返回空的集合。
- zRangeByScore(String, double, double, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
根据score, 获取(key对应的)zset中分数值处于[minScore, maxScore]中的, score处于[minScore,
排名大于等于offset的count个item项
特别注意: 对于不是特别熟悉redis的人来说, offset 和 count最好都使用正数, 避免引起理解上的歧义。
- zRangeByScoreWithScores(String, double, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)zset中的所有score处于[minScore, maxScore]中的entry
- zRangeByScoreWithScores(String, double, double, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)zset中, score处于[minScore, maxScore]里的、排名大于等于offset的count个entry
特别注意: 对于不是特别熟悉redis的人来说, offset 和 count最好都使用正数, 避免引起理解上的歧义。
- zRangeWithScores(String, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
根据索引位置, 获取(key对应的)zset中排名处于[start, end]中的entry集
注: 不论是使用正向排名,还是使用反向排名, 使用此方法时, 应保证 startIndex代表的元素的
位置在endIndex代表的元素的位置的前面, 如:
示例一: .zRange("name", 0, 2);
示例二: .zRange("site", -2, -1);
示例三: .zRange("foo", 0, -1);
注: 若key不存在, 则返回空的集合。
- zRank(String, Object) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
返回item在(key对应的)zset中的(按score从小到大的)排名
注: 排名从0开始。
- zRemove(String, Object...) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
从(key对应的)zset中移除项
注:若key不存在,则返回0
- zRemoveRange(String, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
移除(key对应的)zset中, 排名范围在[startIndex, endIndex]内的item
注:默认的,按score.item升序排名, 排名从0开始
注: 类似于List中的索引, 排名可以分为多个方式:
从前到后(正向)的排名: 0、1、2...
- zRemoveRangeByScore(String, double, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
移除(key对应的)zset中, score范围在[minScore, maxScore]内的item
提示: 虽然删除范围包含两侧的端点(即:包含minScore和maxScore), 但是由于double存在精度问题,所以建议:
设置值时,minScore应该设置得比要删除的项里,最小的score还小一点
maxScore应该设置得比要删除的项里,最大的score还大一点
追注: 本人简单测试了几组数据,暂未出现精度问题。
- zReverseRange(String, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取时, 先按score倒序, 然后根据索引位置, 获取(key对应的)zset中排名处于[start, end]中的item项集
- zReverseRangeByScore(String, double, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取时, 先按score倒序, 然后根据score, 获取(key对应的)zset中分数值处于[minScore, maxScore]中的item项集
- zReverseRangeByScore(String, double, double, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取时, 先按score倒序, 然后根据score, 获取(key对应的)zset中分数值处于[minScore, maxScore]中的,
score处于[minScore,排名大于等于offset的count个item项
- zReverseRangeByScoreWithScores(String, double, double) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取时, 先按score倒序, 然后获取(key对应的)zset中的所有score处于[minScore, maxScore]中的entry
- zReverseRangeWithScores(String, long, long) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取时, 先按score倒序, 然后根据索引位置, 获取(key对应的)zset中排名处于[start, end]中的entry集
- zReverseRank(String, Object) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
返回item在(key对应的)zset中的(按score从大到小的)排名
注: 排名从0开始。
- zScore(String, Object) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
统计(key对应的)zset中指定item的score
- zSize(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
- zUnionAndStore(String, String, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)ZSet的并集, 并将结果add到storeKey对应的ZSet中。
- zUnionAndStore(String, Collection<String>, String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取两个(key对应的)ZSet的并集, 并将结果add到storeKey对应的ZSet中。
- zWholeZSetEntry(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)zset中的所有entry
- zWholeZSetItem(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-
获取(key对应的)zset中的所有item项
- zZCard(String) - 类 中的方法top.isopen.commons.springboot.helper.RedisHelper
-