/** Clears out service methods cache by calling adminstrators flushAll */ protected void clearMethodCache() { LOG.info("clearing spring method cache ..."); if (cacheAdminstrators != null) { for (GeneralCacheAdministrator cache : cacheAdminstrators) { cache.flushAll(); } } }
// 刷新所有缓存 public String flush() { cacheManager.flushAll(); flushCache(); try { ServletContext servletContext = ServletActionContext.getServletContext(); freemarkerManager.getConfiguration(servletContext).clearTemplateCache(); } catch (TemplateException e) { e.printStackTrace(); } return SUCCESS; }
public void clear() throws CacheException { cache.flushAll(); }