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;