jsp 关键字:查询,事务,粒度
/**
* 该方法上加事务,传播途径为required
* @param params
* @return
*/
public List<object> getObject(Map<String, String> params) {
//先从memcached中取得数据
List<object> o1 = memcachedClient.getFromCache(params);
if (o1 == null) {
ol = ObjectDao.getfromDB(params);
memcachedClient.putToCache(params, o1);
}
return o1;
}
补充:Jsp教程,Application与Applet