接口 ISortSetCache<T>

所有超级接口:
AutoCloseable, IBaseCache, IRedisCache, IValueCache<T>
所有已知子接口:
ISortSetDbCache<T>
所有已知实现类:
SortSetCache, SortSetDbCache

public interface ISortSetCache<T> extends IValueCache<T>
有序集合接口
  • 方法详细资料

    • addOrUpdate

      boolean addOrUpdate(T value, double score, OpWhen when, Object... args) throws Exception
      添加或更新数据
      参数:
      value - value
      score - 排序分
      when - 操作类型
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • addOrUpdate

      boolean addOrUpdate(SortSetModel<T> m, OpWhen when, Object... args) throws Exception
      添加或更新数据
      参数:
      m - SortSetModel
      when - 操作类型
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • addOrUpdate

      long addOrUpdate(List<SortSetModel<T>> list, OpWhen when, Object... args) throws Exception
      添加或更新数据
      参数:
      list - SortSetModel List
      when - 操作类型
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • decdrement

      double decdrement(T value, double score, Object... args) throws Exception
      减少 score
      参数:
      value - value
      score - 排序分
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • increment

      double increment(T value, double score, Object... args) throws Exception
      增加 score
      参数:
      value - value
      score - 排序分
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • getCount

      long getCount(double minScore, double maxScore, ExcludeType excType, Object... args) throws Exception
      获取集合数量
      参数:
      minScore - 最小排序分
      maxScore - 最大排序分
      excType - 条件类型
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • pop

      SortSetModel<T> pop(Sort sort, Object... args) throws Exception
      返回并集合
      参数:
      sort - 排序
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • pop

      List<SortSetModel<T>> pop(long count, Sort sort, Object... args) throws Exception
      返回并集合
      参数:
      count - 返回数量
      sort - 排序
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • get

      List<T> get(long start, long stop, Sort sort, Object... args) throws Exception
      获取集合
      参数:
      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

      boolean delete(T value, Object... args) throws Exception
      移除集合
      参数:
      value - value
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • delete

      long delete(List<T> list, Object... args) throws Exception
      移除集合
      参数:
      list - value List
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • delete

      long delete(long start, long stop, Object... args) throws Exception
      移除集合
      参数:
      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

      ICacheCursor<SortSetModel<T>> scan(String pattern, int pageSize, Object... args) throws Exception
      游标方式读取数据
      参数:
      pattern - 搜索表达式
      pageSize - 游标页大小
      args - 缓存key参数
      返回:
      抛出:
      Exception