类 SortSetCache<T>
java.lang.Object
cn.myafx.cache.base.BaseCache
cn.myafx.cache.base.RedisCache
cn.myafx.cache.base.SortSetCache<T>
- 所有已实现的接口:
IBaseCache,IRedisCache,ISortSetCache<T>,IValueCache<T>,AutoCloseable
- 直接已知子类:
SortSetDbCache
有序集合
-
嵌套类概要
嵌套类 -
字段概要
从类继承的字段 cn.myafx.cache.base.RedisCache
DefaultJsonMapper, keyConfig, mapper, nodeName, prefix, redis -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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返回并集合返回集合游标方式读取数据从类继承的方法 cn.myafx.cache.base.RedisCache
close, contains, deserialize, expire, expire, getBytes, getCacheDb, getCacheKey, getDefault, getKeyConfig, getString, ping, remove, serialize, setJsonMapper从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.lang.AutoCloseable
close从接口继承的方法 cn.myafx.cache.base.IRedisCache
contains, expire, expire, getCacheDb, getCacheKey, getKeyConfig, ping, remove, setJsonMapper
-
构造器详细资料
-
SortSetCache
public SortSetCache(String node, String item, org.springframework.data.redis.connection.RedisConnection redisConnection, ICacheKey cacheKey, String prefix, Class<T> clazz) throws Exception SortSetCache- 参数:
node- 缓存key配置db节点item- 缓存key配置项redisConnection- RedisConnectioncacheKey- ICacheKeyprefix- 缓存前缀clazz- T.class- 抛出:
Exception
-
-
方法详细资料
-
addOrUpdate
添加或更新数据- 指定者:
addOrUpdate在接口中ISortSetCache<T>- 参数:
value- valuescore- 排序分when- 操作类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
addOrUpdate
添加或更新数据- 指定者:
addOrUpdate在接口中ISortSetCache<T>- 参数:
m- SortSetModelwhen- 操作类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
addOrUpdate
添加或更新数据- 指定者:
addOrUpdate在接口中ISortSetCache<T>- 参数:
list- SortSetModel Listwhen- 操作类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
decdrement
减少 score- 指定者:
decdrement在接口中ISortSetCache<T>- 参数:
value- valuescore- 排序分args- 缓存key参数- 返回:
- 抛出:
Exception
-
increment
增加 score- 指定者:
increment在接口中ISortSetCache<T>- 参数:
value- valuescore- 排序分args- 缓存key参数- 返回:
- 抛出:
Exception
-
getCount
public long getCount(double minScore, double maxScore, ExcludeType excType, Object... args) throws Exception 获取集合数量- 指定者:
getCount在接口中ISortSetCache<T>- 参数:
minScore- 最小排序分maxScore- 最大排序分excType- 条件类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
pop
返回集合- 指定者:
pop在接口中ISortSetCache<T>- 参数:
sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
pop
返回并集合- 指定者:
pop在接口中ISortSetCache<T>- 参数:
count- 返回数量sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
get
获取集合- 指定者:
get在接口中ISortSetCache<T>- 参数:
start- 开始位置stop- 结束位置sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
getWithScores
public List<SortSetModel<T>> getWithScores(long start, long stop, Sort sort, Object... args) throws Exception 获取集合- 指定者:
getWithScores在接口中ISortSetCache<T>- 参数:
start- 开始位置stop- 结束位置sort- 排序args- 缓存key参数- 返回:
- 抛出:
Exception
-
getByScore
public List<T> getByScore(double startScore, double stopScore, ExcludeType excType, Sort sort, int skip, int take, Object... args) throws Exception 获取集合- 指定者:
getByScore在接口中ISortSetCache<T>- 参数:
startScore- 开始位置排序分stopScore- 结束位置排序分excType- 条件类型sort- 排序skip- 跳过多少个take- 返回多少个, -1.返回所有args- 缓存key参数- 返回:
- 抛出:
Exception
-
getByScoreWithScores
public List<SortSetModel<T>> getByScoreWithScores(double startScore, double stopScore, ExcludeType excType, Sort sort, int skip, int take, Object... args) throws Exception 获取集合- 指定者:
getByScoreWithScores在接口中ISortSetCache<T>- 参数:
startScore- 开始位置排序分stopScore- 结束位置排序分excType- 条件类型sort- 排序skip- 跳过多少个take- 返回多少个args- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除集合- 指定者:
delete在接口中ISortSetCache<T>- 参数:
value- valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除集合- 指定者:
delete在接口中ISortSetCache<T>- 参数:
list- value Listargs- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除集合- 指定者:
delete在接口中ISortSetCache<T>- 参数:
start- 开始位置stop- 结束位置args- 缓存key参数- 返回:
- 抛出:
Exception
-
deleteByScore
public long deleteByScore(double startScore, double stopScore, ExcludeType excType, Object... args) throws Exception 移除集合- 指定者:
deleteByScore在接口中ISortSetCache<T>- 参数:
startScore- 开始位置排序分stopScore- 结束位置排序分excType- 条件类型args- 缓存key参数- 返回:
- 抛出:
Exception
-
scan
public ICacheCursor<SortSetModel<T>> scan(String pattern, int pageSize, Object... args) throws Exception 游标方式读取数据- 指定者:
scan在接口中ISortSetCache<T>- 参数:
pattern- 搜索表达式pageSize- 游标页大小args- 缓存key参数- 返回:
- 抛出:
Exception
-