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
功能描述: 写明作用,调用方式,使用场景,以及特殊情况
| 从类 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.