static <V> void removeFromCache(final IEngineConfiguration configuration, final String input, final String type) { final ICacheManager cacheManager = configuration.getCacheManager(); if (cacheManager != null) { final ICache<ExpressionCacheKey,Object> cache = cacheManager.getExpressionCache(); if (cache != null) { cache.clearKey(new ExpressionCacheKey(type,input)); } } }
this.templateCache.clearKey(keyToBeRemoved);
/** * <p> * Clears a specific entry at the fragment cache. * </p> * * @param fragment the fragment to be cleared. */ public void clearFragmentCacheFor(final String fragment) { if (this.fragmentCache != null) { this.fragmentCache.clearKey(fragment); } }
/** * <p> * Clears any existing entries for template of the specified * name at the template cache. * </p> * * @param templateName the name of the template whose entries have to be cleared. */ public void clearTemplateCacheFor(final String templateName) { if (this.templateCache != null) { this.templateCache.clearKey(templateName); } }
public void clearKey(final K key) { this.cache.clearKey((K)prefix(key)); }
public void clearKey(final K key) { this.cache.clearKey((K)prefix(key)); }