Class HighConcurrencyTemplateCache
java.lang.Object
com.github.jknack.handlebars.cache.HighConcurrencyTemplateCache
- All Implemented Interfaces:
TemplateCache
@Deprecated(since="2024-07-10")
public class HighConcurrencyTemplateCache
extends Object
implements TemplateCache
Deprecated.
com.github.jknack.handlebars.cache package is deprecated and marked for removal in subsequent releases which will involve removal of the handlebars dependency in AEM.
A high concurrency template cache.
- Since:
- 0.11.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new HighConcurrencyTemplateCache. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.Remove all mappings from the cache.voidevict(TemplateSource source) Deprecated.Evict the mapping for this source from this cache if it is present.get(TemplateSource source, Parser parser) Deprecated.Return the value to which this cache maps the specified key.setReload(boolean reload) Deprecated.Turn on/off auto reloading of templates.
-
Constructor Details
-
HighConcurrencyTemplateCache
public HighConcurrencyTemplateCache()Deprecated.Creates a new HighConcurrencyTemplateCache.
-
-
Method Details
-
clear
public void clear()Deprecated.Description copied from interface:TemplateCacheRemove all mappings from the cache.- Specified by:
clearin interfaceTemplateCache
-
evict
Deprecated.Description copied from interface:TemplateCacheEvict the mapping for this source from this cache if it is present.- Specified by:
evictin interfaceTemplateCache- Parameters:
source- the source whose mapping is to be removed from the cache
-
get
Deprecated.Description copied from interface:TemplateCacheReturn the value to which this cache maps the specified key.- Specified by:
getin interfaceTemplateCache- Parameters:
source- source whose associated template is to be returned.parser- The Handlebars parser.- Returns:
- A template.
- Throws:
IOException- If input can't be parsed.
-
setReload
Deprecated.Description copied from interface:TemplateCacheTurn on/off auto reloading of templates. Auto reload is done usingTemplateSource.lastModified().- Specified by:
setReloadin interfaceTemplateCache- Parameters:
reload- True, for turning off template reload. Default is: false.- Returns:
- This template loader.
-