public void clearCache() { context.getCache(); } }
public void clearCache() { context.getCache(); } }
@Override public void clearCache() { LOG.debug("Clearing all cache"); context.getCache().clear(); LOG.debug("All caches cleared"); } }
@Override public void clearCache() { LOG.debug("Clearing all cache"); context.getCache().clear(); LOG.debug("All caches cleared"); } }
public CacheEntry storeAssets(String key, CacheEntry cacheElement) { context.getCache().put(key, cacheElement); return cacheElement; }
public CacheEntry storeAssets(String key, CacheEntry cacheElement) { context.getCache().put(key, cacheElement); return cacheElement; }
public CacheEntry getAssets(String cacheKey) { return context.getCache().get(cacheKey); }
public String getCacheName() { return context.getCache().getCacheName(); }
public CacheEntry getAssets(String cacheKey) { return context.getCache().get(cacheKey); }
public String getCacheName() { return context.getCache().getCacheName(); }
@Override public boolean handle(HandlerContext handlerContext) { handlerContext.getContext().getCache().clear(); LOG.info("Cleared configured cache"); return true; } }
@Override public boolean handle(HandlerContext handlerContext) { handlerContext.getContext().getCache().clear(); LOG.info("Cleared configured cache"); return true; } }
@Override protected Map<String, Object> getPageContext() { Map<String, Object> pageContext = new HashMap<String, Object>(); boolean cachingEnabled = context.getContext().getConfiguration().isCachingEnabled(); pageContext.put("cacheEnabled", cachingEnabled); if (cachingEnabled) { pageContext.put("implementation", context.getContext().getCache().getClass()); pageContext.put("cacheElements", context.getContext().getCache().getAll()); pageContext.put("getCount", context.getContext().getCache().getGetCount()); pageContext.put("hitCount", context.getContext().getCache().getHitCount()); pageContext.put("missCount", context.getContext().getCache().getMissCount()); pageContext.put("putCount", context.getContext().getCache().getPutCount()); } return pageContext; } }
@Override protected Map<String, Object> getPageContext() { Map<String, Object> pageContext = new HashMap<String, Object>(); boolean cachingEnabled = context.getContext().getConfiguration().isCachingEnabled(); pageContext.put("cacheEnabled", cachingEnabled); if (cachingEnabled) { pageContext.put("implementation", context.getContext().getCache().getClass()); pageContext.put("cacheElements", context.getContext().getCache().getAll()); pageContext.put("getCount", context.getContext().getCache().getGetCount()); pageContext.put("hitCount", context.getContext().getCache().getHitCount()); pageContext.put("missCount", context.getContext().getCache().getMissCount()); pageContext.put("putCount", context.getContext().getCache().getPutCount()); } return pageContext; } }