public class ForeverTemplateCache extends Object implements com.github.jknack.handlebars.cache.TemplateCache
TemplateCache built on top of ConcurrentHashMap that never expires members.ConcurrentMapTemplateCache| Modifier | Constructor and Description |
|---|---|
|
ForeverTemplateCache()
Creates a new ConcurrentMapTemplateCache.
|
protected |
ForeverTemplateCache(ConcurrentMap<com.github.jknack.handlebars.io.TemplateSource,org.apache.commons.lang3.tuple.Pair<com.github.jknack.handlebars.io.TemplateSource,com.github.jknack.handlebars.Template>> cache)
Creates a new ConcurrentMapTemplateCache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
evict(com.github.jknack.handlebars.io.TemplateSource source) |
com.github.jknack.handlebars.Template |
get(com.github.jknack.handlebars.io.TemplateSource source,
com.github.jknack.handlebars.Parser parser) |
protected ForeverTemplateCache(ConcurrentMap<com.github.jknack.handlebars.io.TemplateSource,org.apache.commons.lang3.tuple.Pair<com.github.jknack.handlebars.io.TemplateSource,com.github.jknack.handlebars.Template>> cache)
cache - The concurrent map cache. Required.public ForeverTemplateCache()
public void clear()
clear in interface com.github.jknack.handlebars.cache.TemplateCachepublic void evict(com.github.jknack.handlebars.io.TemplateSource source)
evict in interface com.github.jknack.handlebars.cache.TemplateCachepublic com.github.jknack.handlebars.Template get(com.github.jknack.handlebars.io.TemplateSource source,
com.github.jknack.handlebars.Parser parser)
throws IOException
get in interface com.github.jknack.handlebars.cache.TemplateCacheIOExceptionCopyright © 2003–2017 Sakai Project. All rights reserved.