类 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

public class RedisPageCache extends RedisCache
描述:redis带分页的缓存对象
作者:
时克英
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • putSort

      public void putSort(double score, String id, String data)
      为分页缓存对象,添加一个缓存
      参数:
      score - 排序值,例如:时间、数值等
      id - 对象唯一id
      data - 存储数据字符串
    • removeSort

      public void removeSort(String id)
      为分页缓存对象,删除一个缓存
      参数:
      id - 缓存对象唯一id
    • queryListPage

      public com.walker.db.page.GenericPager<Object> queryListPage(int pageIndex, int pageSize)
      为分页缓存对象,返回一页数据集合
      参数:
      pageIndex - 页码数,从1开始
      pageSize - 每页数量
      返回:
    • queryListLimit

      public Collection<Object> queryListLimit(int maxSize)
      返回给定限制的缓存数据集合
      指定者:
      queryListLimit 在接口中 Cache
      覆盖:
      queryListLimit 在类中 RedisCache
      参数:
      maxSize - 限制的最大数量
      返回:
    • replace

      public void replace(String key, Object data)
      指定者:
      replace 在接口中 Cache
      覆盖:
      replace 在类中 RedisCache
    • put

      public void put(String key, Object data)
      指定者:
      put 在接口中 Cache
      覆盖:
      put 在类中 RedisCache