Class ConcurrentMapTemplateCache
java.lang.Object
io.pebbletemplates.pebble.cache.template.ConcurrentMapTemplateCache
- All Implemented Interfaces:
PebbleCache<Object,
PebbleTemplate>
public class ConcurrentMapTemplateCache
extends Object
implements PebbleCache<Object,PebbleTemplate>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConcurrentMapTemplateCache
(ConcurrentMap<Object, PebbleTemplate> templateCache) -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent
(Object key, Function<? super Object, ? extends PebbleTemplate> mappingFunction) void
-
Field Details
-
templateCache
-
-
Constructor Details
-
ConcurrentMapTemplateCache
public ConcurrentMapTemplateCache() -
ConcurrentMapTemplateCache
-
-
Method Details
-
computeIfAbsent
public PebbleTemplate computeIfAbsent(Object key, Function<? super Object, ? extends PebbleTemplate> mappingFunction) - Specified by:
computeIfAbsent
in interfacePebbleCache<Object,
PebbleTemplate>
-
invalidateAll
public void invalidateAll()- Specified by:
invalidateAll
in interfacePebbleCache<Object,
PebbleTemplate>
-