org.thymeleaf.cache
Interface ICacheEntryValidityChecker<K,V>

Type Parameters:
K - The type of the cache map keys
V - 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.Serializable

Defines the logic needed to (optionally) validate an entry living in an ICache object before returning it as the result of a get operation. If not valid, the entry will be removed from the cache (and null will be returned).

Since:
2.0.0
Author:
Daniel Fernández

Method Summary
 boolean checkIsValueStillValid(K key, V value, long entryCreationTimestamp)
           
 

Method Detail

checkIsValueStillValid

boolean checkIsValueStillValid(K key,
                               V value,
                               long entryCreationTimestamp)


Copyright © 2012 The THYMELEAF team. All Rights Reserved.