Class ConcurrentMapTagCache
- java.lang.Object
-
- io.pebbletemplates.pebble.cache.tag.ConcurrentMapTagCache
-
- All Implemented Interfaces:
PebbleCache<CacheKey,java.lang.Object>
public class ConcurrentMapTagCache extends java.lang.Object implements PebbleCache<CacheKey,java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description ConcurrentMapTagCache()
ConcurrentMapTagCache(java.util.concurrent.ConcurrentMap<CacheKey,java.lang.Object> tagCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
computeIfAbsent(CacheKey key, java.util.function.Function<? super CacheKey,?> mappingFunction)
void
invalidateAll()
-
-
-
Field Detail
-
tagCache
private final java.util.concurrent.ConcurrentMap<CacheKey,java.lang.Object> tagCache
-
-
Constructor Detail
-
ConcurrentMapTagCache
public ConcurrentMapTagCache()
-
ConcurrentMapTagCache
public ConcurrentMapTagCache(java.util.concurrent.ConcurrentMap<CacheKey,java.lang.Object> tagCache)
-
-
Method Detail
-
computeIfAbsent
public java.lang.Object computeIfAbsent(CacheKey key, java.util.function.Function<? super CacheKey,?> mappingFunction)
- Specified by:
computeIfAbsent
in interfacePebbleCache<CacheKey,java.lang.Object>
-
invalidateAll
public void invalidateAll()
- Specified by:
invalidateAll
in interfacePebbleCache<CacheKey,java.lang.Object>
-
-