Package org.jahia.services.cache

Examples of org.jahia.services.cache.Cache.removeAll()


            if (request.getParameter ("flush_ehcache_" + cacheName) != null) {
                net.sf.ehcache.Cache cache = ehcacheManager.getCache(cacheName);
                if (cache != null) {
                    logger.info("Flushing cache: " + cacheName);
                    // flush without notifying the other cluster nodes
                    cache.removeAll(true);
                    // reset statistics
                    cache.clearStatistics();
                }
            }
        }
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.