public class TemplateCacheKeyPartGenerator extends Object implements CacheKeyPartGenerator
| Constructor and Description |
|---|
TemplateCacheKeyPartGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
String |
getValue(Resource resource,
RenderContext renderContext,
Properties properties)
Get value of this given key part.
|
String |
replacePlaceholders(RenderContext renderContext,
String keyPart)
Replace placeholders in the keyPart to construct the final key used to store the fragment in the cache.
|
public String getKey()
getKey in interface CacheKeyPartGeneratorpublic String getValue(Resource resource, RenderContext renderContext, Properties properties)
CacheKeyPartGeneratorgetValue in interface CacheKeyPartGeneratorresource - the current rendered resourcerenderContext - the current renderContextproperties - the current fragment propertiespublic String replacePlaceholders(RenderContext renderContext, String keyPart)
CacheKeyPartGeneratorreplacePlaceholders in interface CacheKeyPartGeneratorrenderContext - the current render contextkeyPart - the key part, a value returned by the getValue(...) functionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.