public interface CacheKeyPartGenerator
| 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.
|
String getKey()
String getValue(Resource resource, RenderContext renderContext, Properties properties)
resource - the current rendered resourcerenderContext - the current renderContextproperties - the current fragment propertiesString replacePlaceholders(RenderContext renderContext, String keyPart)
renderContext - the current render contextkeyPart - the key part, a value returned by the getValue(...) functionCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.