Package com.opensymphony.oscache.web

Examples of com.opensymphony.oscache.web.ServletCacheAdministrator.flushAll()


    public final static Logger logger = Logger.getLogger(OSCacheUtility.class.getName());

  public static void setServletCacheParams(ServletContext context)
  {
    ServletCacheAdministrator servletCacheAdministrator = ServletCacheAdministrator.getInstance(context);
    servletCacheAdministrator.flushAll();
    Cache cache = servletCacheAdministrator.getAppScopeCache(context);
   
    servletCacheAdministrator.setAlgorithmClass("com.opensymphony.oscache.base.algorithm.ImprovedLRUCache");
   
    int capacity = 5000;
View Full Code Here


      String returnValue = handleAccess(this.getRequest());
      if(returnValue != null)
        return returnValue;

    ServletCacheAdministrator servletCacheAdministrator = ServletCacheAdministrator.getInstance(ActionContext.getServletContext());
    servletCacheAdministrator.flushAll();
    Cache cache = servletCacheAdministrator.getAppScopeCache(ActionContext.getServletContext());
   
    OSCacheUtility.clear(cache);
   
    return "cleared";
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.