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 Details

    • HighConcurrencyTemplateCache

      public HighConcurrencyTemplateCache()
      Deprecated.
      Creates a new HighConcurrencyTemplateCache.
  • Method Details

    • clear

      public void clear()
      Deprecated.
      Description copied from interface: TemplateCache
      Remove all mappings from the cache.
      Specified by:
      clear in interface TemplateCache
    • evict

      public void evict(TemplateSource source)
      Deprecated.
      Description copied from interface: TemplateCache
      Evict the mapping for this source from this cache if it is present.
      Specified by:
      evict in interface TemplateCache
      Parameters:
      source - the source whose mapping is to be removed from the cache
    • get

      public Template get(TemplateSource source, Parser parser) throws IOException
      Deprecated.
      Description copied from interface: TemplateCache
      Return the value to which this cache maps the specified key.
      Specified by:
      get in interface TemplateCache
      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

      public HighConcurrencyTemplateCache setReload(boolean reload)
      Deprecated.
      Description copied from interface: TemplateCache
      Turn on/off auto reloading of templates. Auto reload is done using TemplateSource.lastModified().
      Specified by:
      setReload in interface TemplateCache
      Parameters:
      reload - True, for turning off template reload. Default is: false.
      Returns:
      This template loader.