类 LinkListCache<T>
java.lang.Object
cn.myafx.cache.base.BaseCache
cn.myafx.cache.base.RedisCache
cn.myafx.cache.base.LinkListCache<T>
- 所有已实现的接口:
IBaseCache,ILinkListCache<T>,IRedisCache,IValueCache<T>,AutoCloseable
- 直接已知子类:
LinkListDbCache
-
字段概要
从类继承的字段 cn.myafx.cache.base.RedisCache
DefaultJsonMapper, keyConfig, mapper, nodeName, prefix, redis -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明long移除数据获取指定索引位置数据long获取链表长度获取一个范围数据longinsertAfter(T pivot, T value, Object... args) 插入到那个value后面longinsertBefore(T pivot, T value, Object... args) 插入到那个value前面返回并移除左边第一个返回并移除右边第一个long添加到左边第一个long添加到左边第一个long添加到右边第一个long添加到右边第一个void移除指定区域之外的所有数据boolean更新从类继承的方法 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
-
构造器详细资料
-
LinkListCache
public LinkListCache(String node, String item, org.springframework.data.redis.connection.RedisConnection redisConnection, ICacheKey cacheKey, String prefix, Class<T> clazz) throws Exception LinkListCache- 参数:
node- 缓存key配置db节点item- 缓存key配置项redisConnection- RedisConnectioncacheKey- ICacheKeyprefix- 缓存前缀- 抛出:
Exception
-
-
方法详细资料
-
pushLeft
添加到左边第一个- 指定者:
pushLeft在接口中ILinkListCache<T>- 参数:
value- valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
pushLeft
添加到左边第一个- 指定者:
pushLeft在接口中ILinkListCache<T>- 参数:
list- value listargs- 缓存key参数- 返回:
- 抛出:
Exception
-
pushRight
添加到右边第一个- 指定者:
pushRight在接口中ILinkListCache<T>- 参数:
value- valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
pushRight
添加到右边第一个- 指定者:
pushRight在接口中ILinkListCache<T>- 参数:
list- value listargs- 缓存key参数- 返回:
- 抛出:
Exception
-
get
获取指定索引位置数据- 指定者:
get在接口中ILinkListCache<T>- 参数:
index- 索引位置args- 缓存key参数- 返回:
- 抛出:
Exception
-
getRange
获取一个范围数据- 指定者:
getRange在接口中ILinkListCache<T>- 参数:
start- 开始位置stop- 结束位置,-1.全部args- 缓存key参数- 返回:
- 抛出:
Exception
-
insertAfter
插入到那个value后面- 指定者:
insertAfter在接口中ILinkListCache<T>- 参数:
pivot- 要插入到那个value后面value- 插入valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
insertBefore
插入到那个value前面- 指定者:
insertBefore在接口中ILinkListCache<T>- 参数:
pivot- 要插入到那个value前面value- 插入valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
popLeft
返回并移除左边第一个- 指定者:
popLeft在接口中ILinkListCache<T>- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-
popRight
返回并移除右边第一个- 指定者:
popRight在接口中ILinkListCache<T>- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-
update
更新- 指定者:
update在接口中ILinkListCache<T>- 参数:
index- 位置value- 更新后valueargs- 缓存key参数- 返回:
- 抛出:
Exception
-
delete
移除数据- 指定者:
delete在接口中ILinkListCache<T>- 参数:
value- 要删除的valuecount- 匹配数据个数,0.匹配所有args- 缓存key参数- 返回:
- 抛出:
Exception
-
trim
移除指定区域之外的所有数据- 指定者:
trim在接口中ILinkListCache<T>- 参数:
start- 开始位置stop- 结束位置args- 缓存key参数- 抛出:
Exception
-
getCount
获取链表长度- 指定者:
getCount在接口中ILinkListCache<T>- 参数:
args- 缓存key参数- 返回:
- 抛出:
Exception
-