接口 ISortSetCache<T>
- 所有超级接口:
AutoCloseable,IBaseCache,IRedisCache,IValueCache<T>
- 所有已知子接口:
ISortSetDbCache<T>
- 所有已知实现类:
SortSetCache,SortSetDbCache
有序集合接口
-
方法概要
修饰符和类型方法说明booleanaddOrUpdate(SortSetModel<T> m, OpWhen when, Object... args) 添加或更新数据longaddOrUpdate(List<SortSetModel<T>> list, OpWhen when, Object... args) 添加或更新数据booleanaddOrUpdate(T value, double score, OpWhen when, Object... args) 添加或更新数据doubledecdrement(T value, double score, Object... args) 减少 scorelong移除集合long移除集合boolean移除集合longdeleteByScore(double startScore, double stopScore, ExcludeType excType, Object... args) 移除集合获取集合getByScore(double startScore, double stopScore, ExcludeType excType, Sort sort, int skip, int take, Object... args) 获取集合getByScoreWithScores(double startScore, double stopScore, ExcludeType excType, Sort sort, int skip, int take, Object... args) 获取集合longgetCount(double minScore, double maxScore, ExcludeType excType, Object... args) 获取集合数量getWithScores(long start, long stop, Sort sort, Object... args) 获取集合double增加 score返回并集合返回并集合游标方式读取数据从接口继承的方法 java.lang.AutoCloseable
close从接口继承的方法 cn.myafx.cache.base.IRedisCache
contains, expire, expire, getCacheDb, getCacheKey, getKeyConfig, ping, remove, setJsonMapper
-
方法详细资料
-
addOrUpdate
添加或更新数据- 参数:
value- valuescore- 排序分when- 操作类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
addOrUpdate
添加或更新数据- 参数:
m- SortSetModelwhen- 操作类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
addOrUpdate
添加或更新数据- 参数:
list- SortSetModel Listwhen- 操作类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
decdrement
减少 score- 参数:
value- valuescore- 排序分args- 缓存key参数- 返回:
- 抛出:
Exception
-
increment
增加 score- 参数:
value- valuescore- 排序分args- 缓存key参数- 返回:
- 抛出:
Exception
-
getCount
long getCount(double minScore, double maxScore, ExcludeType excType, Object... args) throws Exception 获取集合数量- 参数:
minScore- 最小排序分maxScore- 最大排序分excType- 条件类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
pop
返回并集合- 参数:
sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
pop
返回并集合- 参数:
count- 返回数量sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
get
获取集合- 参数:
start- 开始位置stop- 结束位置sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
getWithScores
List<SortSetModel<T>> getWithScores(long start, long stop, Sort sort, Object... args) throws Exception 获取集合- 参数:
start- 开始位置stop- 结束位置sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
getByScore
List<T> getByScore(double startScore, double stopScore, ExcludeType excType, Sort sort, int skip, int take, Object... args) throws Exception 获取集合- 参数:
startScore- 开始位置排序分stopScore- 结束位置排序分excType- 条件类型sort- 排序skip- 跳过多少个take- 返回多少个args- 缓存key参数- 返回:
- 抛出:
Exception
-
getByScoreWithScores
List<SortSetModel<T>> getByScoreWithScores(double startScore, double stopScore, ExcludeType excType, Sort sort, int skip, int take, Object... args) throws Exception 获取集合- 参数:
startScore- 开始位置排序分stopScore- 结束位置排序分excType- 条件类型sort- 排序skip- 跳过多少个take- 返回多少个,-1.返回所有args- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除集合- 参数:
value- valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除集合- 参数:
list- value Listargs- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除集合- 参数:
start- 开始位置stop- 结束位置args- 缓存key参数- 返回:
- 抛出:
Exception
-
deleteByScore
long deleteByScore(double startScore, double stopScore, ExcludeType excType, Object... args) throws Exception 移除集合- 参数:
startScore- 开始位置排序分stopScore- 结束位置排序分excType- 条件类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
scan
游标方式读取数据- 参数:
pattern- 搜索表达式pageSize- 游标页大小args- 缓存key参数- 返回:
- 抛出:
Exception
-