Package org.thymeleaf.cache
Interface ICacheEntryValidityChecker<K,V>
-
- Type Parameters:
K- The type of the cache map keysV- The type of the cache map values
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
StandardParsedTemplateEntryValidator
public interface ICacheEntryValidityChecker<K,V> extends java.io.SerializableDefines the logic needed to (optionally) validate an entry living in an
ICacheobject before returning it as the result of agetoperation. If not valid, the entry will be removed from the cache (and null will be returned).- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckIsValueStillValid(K key, V value, long entryCreationTimestamp)
-