org.tinygroup.weblayer.webcontext.cache
类 CacheOperater

java.lang.Object
  继承者 org.tinygroup.weblayer.webcontext.cache.CacheOperater

public class CacheOperater
extends Object

功能说明:

系统版本: v1.0
开发人员: renhui
开发时间: 2013-8-22
功能描述: 写明作用,调用方式,使用场景,以及特殊情况


字段摘要
static String DEFAULT_CACHE_GROUP_NAME
           
 
构造方法摘要
CacheOperater(Cache cache)
           
 
方法摘要
 void addMapping(String patternStr, String paramNames, Long timeToLived)
           
 String getCacheContent(String accessPath, WebContext webcontext)
          获取访问路径的缓存内容; 1、判断请求路径是否可以缓存 2、请求路径对应的缓存是否已经失效 3、获取请求路径对应的缓存内容
 boolean isCachePath(String accessPath)
          此请求路径是否可以被缓存
 boolean isInValid(String cacheKey)
           
 void putCache(String accessPath, String output, WebContext webcontext)
          把请求路径对应的页面内容放入缓存
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

DEFAULT_CACHE_GROUP_NAME

public static final String DEFAULT_CACHE_GROUP_NAME
另请参见:
常量字段值
构造方法详细信息

CacheOperater

public CacheOperater(Cache cache)
方法详细信息

addMapping

public void addMapping(String patternStr,
                       String paramNames,
                       Long timeToLived)

putCache

public void putCache(String accessPath,
                     String output,
                     WebContext webcontext)
把请求路径对应的页面内容放入缓存

参数:
accessPath - 访问路径不带参数信息
output - 页面内容
webcontext -

isInValid

public boolean isInValid(String cacheKey)

getCacheContent

public String getCacheContent(String accessPath,
                              WebContext webcontext)
获取访问路径的缓存内容; 1、判断请求路径是否可以缓存 2、请求路径对应的缓存是否已经失效 3、获取请求路径对应的缓存内容

参数:
accessPath -
返回:
缓存内容

isCachePath

public boolean isCachePath(String accessPath)
此请求路径是否可以被缓存

参数:
accessPath -
返回:


Copyright © 2006–2014 开源组织. All rights reserved.