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>

public class SpincastCaffeineTemplateCache extends Object implements com.mitchellbosecke.pebble.cache.PebbleCache<Object,com.mitchellbosecke.pebble.template.PebbleTemplate>
  • 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 interface com.mitchellbosecke.pebble.cache.PebbleCache<Object,com.mitchellbosecke.pebble.template.PebbleTemplate>
    • invalidateAll

      public void invalidateAll()
      Specified by:
      invalidateAll in interface com.mitchellbosecke.pebble.cache.PebbleCache<Object,com.mitchellbosecke.pebble.template.PebbleTemplate>