Class SpincastCaffeineTemplateCache
java.lang.Object
org.spincast.plugins.pebble.utils.SpincastCaffeineTemplateCache
- All Implemented Interfaces:
com.mitchellbosecke.pebble.cache.PebbleCache<Object,
com.mitchellbosecke.pebble.template.PebbleTemplate>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.mitchellbosecke.pebble.template.PebbleTemplate
computeIfAbsent
(Object key, Function<? super Object, ? extends com.mitchellbosecke.pebble.template.PebbleTemplate> mappingFunction) void
-
Constructor Details
-
SpincastCaffeineTemplateCache
public SpincastCaffeineTemplateCache(long maximumSize)
-
-
Method Details
-
computeIfAbsent
public com.mitchellbosecke.pebble.template.PebbleTemplate computeIfAbsent(Object key, Function<? super Object, ? extends com.mitchellbosecke.pebble.template.PebbleTemplate> mappingFunction) - Specified by:
computeIfAbsent
in interfacecom.mitchellbosecke.pebble.cache.PebbleCache<Object,
com.mitchellbosecke.pebble.template.PebbleTemplate>
-
invalidateAll
public void invalidateAll()- Specified by:
invalidateAll
in interfacecom.mitchellbosecke.pebble.cache.PebbleCache<Object,
com.mitchellbosecke.pebble.template.PebbleTemplate>
-