Пример #1
0
  /** 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();
      }
    }
  }
Пример #2
0
 // 刷新所有缓存
 public String flush() {
   cacheManager.flushAll();
   flushCache();
   try {
     ServletContext servletContext = ServletActionContext.getServletContext();
     freemarkerManager.getConfiguration(servletContext).clearTemplateCache();
   } catch (TemplateException e) {
     e.printStackTrace();
   }
   return SUCCESS;
 }
Пример #3
0
 public void clear() throws CacheException {
   cache.flushAll();
 }