类 RedisPageCache
java.lang.Object
com.walker.support.redis.cache.RedisCache
com.walker.support.redis.cache.RedisPageCache
- 所有已实现的接口:
Cache,Expired,com.walker.infrastructure.core.ApplicationBeanDestroied,com.walker.infrastructure.core.ApplicationBeanInitialized,Serializable
描述:redis带分页的缓存对象
- 作者:
- 时克英
- 另请参阅:
-
字段概要
从类继承的字段 com.walker.support.redis.cache.RedisCache
logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoid为分页缓存对象,添加一个缓存queryListLimit(int maxSize) 返回给定限制的缓存数据集合com.walker.db.page.GenericPager<Object>queryListPage(int pageIndex, int pageSize) 为分页缓存对象,返回一页数据集合voidremoveSort(String id) 为分页缓存对象,删除一个缓存void从类继承的方法 com.walker.support.redis.cache.RedisCache
clear, get, get, getCacheName, getExpiredTime, getIterator, getIterator, getKeys, getList, getListSize, getPersistentSize, getRedisHelper, getRootData, isSupportExpiredCache, isWriteOnDiskAfterShutdown, put, putList, putListAppend, remove, remove, removeList, removeList, setCacheName, setCacheOperateListener, setExpiredTime, setRedisHelper, setSupportExpiredCache, setWriteOnDiskAfterShutdown, shutdown, size, startup, updateCacheDataTimeStamp
-
构造器详细资料
-
RedisPageCache
-
-
方法详细资料
-
putSort
为分页缓存对象,添加一个缓存- 参数:
score- 排序值,例如:时间、数值等id- 对象唯一iddata- 存储数据字符串
-
removeSort
为分页缓存对象,删除一个缓存- 参数:
id- 缓存对象唯一id
-
queryListPage
为分页缓存对象,返回一页数据集合- 参数:
pageIndex- 页码数,从1开始pageSize- 每页数量- 返回:
-
queryListLimit
返回给定限制的缓存数据集合- 指定者:
queryListLimit在接口中Cache- 覆盖:
queryListLimit在类中RedisCache- 参数:
maxSize- 限制的最大数量- 返回:
-
replace
- 指定者:
replace在接口中Cache- 覆盖:
replace在类中RedisCache
-
put
- 指定者:
put在接口中Cache- 覆盖:
put在类中RedisCache
-