接口 ISetCache<T>

所有超级接口:
AutoCloseable, IBaseCache, IRedisCache, IValueCache<T>
所有已知子接口:
ISetDbCache<T>
所有已知实现类:
SetCache, SetDbCache

public interface ISetCache<T> extends IValueCache<T>
set 集合
  • 方法详细资料

    • add

      boolean add(T value, Object... args) throws Exception
      添加数据
      参数:
      value -
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • add

      long add(List<T> list, Object... args) throws Exception
      添加数据
      参数:
      list - value list
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • get

      List<T> get(Object... args) throws Exception
      获取集合
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • join

      List<T> join(Object[] firstArgs, Object[] secondArgs, SetOp op) throws Exception
      两个集合运算,返回运算结果
      参数:
      firstArgs - 第一个集合缓存key参数
      secondArgs - 第二集合缓存key参数
      op - 操作
      返回:
      抛出:
      Exception
    • joinAndAdd

      long joinAndAdd(Object[] addArgs, Object[] firstArgs, Object[] secondArgs, SetOp op) throws Exception
      两个集合运算,并将运算结果存储到新集合
      参数:
      addArgs - 新集合缓存key参数
      firstArgs - 第一个集合缓存key参数
      secondArgs - 第二集合缓存key参数
      op - 操作
      返回:
      抛出:
      Exception
    • exist

      boolean exist(T value, Object... args) throws Exception
      value是否存在
      参数:
      value - value
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • getCount

      long getCount(Object... args) throws Exception
      集合数量
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • move

      boolean move(Object[] sourceArgs, Object[] desArgs, T value) throws Exception
      移动一个已存在对象到新集合
      参数:
      sourceArgs - 源集合缓存key参数
      desArgs - 需要移到新集合缓存key参数
      value - 移动对象
      返回:
      抛出:
      Exception
    • pop

      T pop(Object... args) throws Exception
      返回并移除一个集合对象
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • pop

      List<T> pop(int count, Object... args) throws Exception
      返回并移除集合对象
      参数:
      count - 数量
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • getRandomValue

      T getRandomValue(Object... args) throws Exception
      随机返回一个对象
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • getRandomValue

      List<T> getRandomValue(int count, Object... args) throws Exception
      随机返回对象
      参数:
      count - 数量
      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
    • scan

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