public class SimpleCacheKeyResolver extends Object implements TemplateCacheKeyResolverService
TemplateCacheKeyResolverService that returns a concatenation of a
templateName and cacheKey. If the cacheKey is set to none, null is returned resulting in no cache.CACHE_KEY_ATTRIBUTE, NONE_CACHE_VALUE| Constructor and Description |
|---|
SimpleCacheKeyResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getStringValue(String attrName,
Map<String,String> tagAttributes,
boolean removeAttribute,
BroadleafTemplateContext context) |
String |
resolveCacheKey(String tagName,
Map<String,String> tagAttributes,
String documentName,
Integer lineNumber,
BroadleafTemplateContext context)
Returns a concatenation of the templateName and cacheKey separated by an "_".
|
public String resolveCacheKey(String tagName, Map<String,String> tagAttributes, String documentName, Integer lineNumber, BroadleafTemplateContext context)
resolveCacheKey in interface TemplateCacheKeyResolverServicethe - tag name that the cache processor is running intagAttributes - the attributes used in the tag or ones added by the cache processordocumentName - the name of the templatelineNumber - the line that the cache processor is oncontext - the context that the processor is executing inSimpleCacheKeyResolverCopyright © 2023. All rights reserved.