接口 ILinkListCache<T>

所有超级接口:
AutoCloseable, IBaseCache, IRedisCache, IValueCache<T>
所有已知子接口:
ILinkListDbCache<T>
所有已知实现类:
LinkListCache, LinkListDbCache

public interface ILinkListCache<T> extends IValueCache<T>
链表接口
  • 方法详细资料

    • pushLeft

      long pushLeft(T value, Object... args) throws Exception
      添加到左边第一个
      参数:
      value - value
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • pushLeft

      long pushLeft(List<T> list, Object... args) throws Exception
      添加到左边第一个
      参数:
      list - value list
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • pushRight

      long pushRight(T value, Object... args) throws Exception
      添加到右边第一个
      参数:
      value - value
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • pushRight

      long pushRight(List<T> list, Object... args) throws Exception
      添加到右边第一个
      参数:
      list - value list
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • get

      T get(long index, Object... args) throws Exception
      获取指定索引位置数据
      参数:
      index - 索引位置
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • getRange

      List<T> getRange(long start, long stop, Object... args) throws Exception
      获取一个范围数据
      参数:
      start - 开始位置
      stop - 结束位置,-1.全部
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • insertAfter

      long insertAfter(T pivot, T value, Object... args) throws Exception
      插入到那个value后面
      参数:
      pivot - 要插入到那个value后面
      value - 插入value
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • insertBefore

      long insertBefore(T pivot, T value, Object... args) throws Exception
      插入到那个value前面
      参数:
      pivot - 要插入到那个value前面
      value - 插入value
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • popLeft

      T popLeft(Object... args) throws Exception
      返回并移除左边第一个
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • popRight

      T popRight(Object... args) throws Exception
      返回并移除右边第一个
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • update

      boolean update(long index, T value, Object... args) throws Exception
      更新
      参数:
      index - 位置
      value - 更新后value
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • delete

      long delete(T value, long count, Object... args) throws Exception
      移除数据
      参数:
      value - 要删除的value
      count - 匹配数据个数,0.匹配所有
      args - 缓存key参数
      返回:
      抛出:
      Exception
    • trim

      void trim(long start, long stop, Object... args) throws Exception
      移除指定区域之外的所有数据
      参数:
      start - 开始位置
      stop - 结束位置
      args - 缓存key参数
      抛出:
      Exception
    • getCount

      long getCount(Object... args) throws Exception
      获取链表长度
      参数:
      args - 缓存key参数
      返回:
      抛出:
      Exception