@Service(value="blTemplateCacheKeyResolver") 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.| Constructor and Description |
|---|
SimpleCacheKeyResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getStringValue(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attrName,
boolean removeAttribute) |
String |
resolveCacheKey(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element)
Returns a concatenation of the templateName and cacheKey separated by an "_".
|
protected String |
resolveTemplateName(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element) |
public String resolveCacheKey(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
resolveCacheKey in interface TemplateCacheKeyResolverServicetemplateName - - Name of the template that is subject to being cached.cacheKey - - Value of the parameter passed in from the templateSimpleCacheKeyResolverprotected String resolveTemplateName(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element)
Copyright © 2015. All Rights Reserved.