67,513
社区成员
发帖
与我相关
我的任务
分享
public List<Ads> findAds(Ads bean) throws Exception {
List<Ads> list = null;
try {
list = (List<Ads>) cacheAdmin.getFromCache(bean.getType(),
7200);
} catch (NeedsRefreshException e) {
try {
list = rocket.findList(bean, "findAds");
cacheAdmin.putInCache(bean.getType(), list);
} catch (Exception ex) {
list = (List<Ads>) e.getCacheContent();
cacheAdmin.cancelUpdate(bean.getType());
}
} catch (Exception exr) {
exr.printStackTrace();
}
return list;
}