Class TestCache<K,V>
java.lang.Object
org.thymeleaf.testing.templateengine.engine.cache.TestCache<K,V>
- All Implemented Interfaces:
ICache<K,V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the entire cache.voidClears a specific entry in the cache.Retrieve a value from the cache.get(K key, ICacheEntryValidityChecker<? super K, ? super V> validityChecker) Retrieve a value from the cache, using the specified validity checker to ensure the entry is still valid.keySet()Returns all the keys contained in this cache.private ObjectvoidInsert a new value into the cache.
-
Field Details
-
cache
-
-
Constructor Details
-
TestCache
-
-
Method Details
-
prefix
-
put
Description copied from interface:ICacheInsert a new value into the cache.
-
get
Description copied from interface:ICacheRetrieve a value from the cache.
-
get
Description copied from interface:ICacheRetrieve a value from the cache, using the specified validity checker to ensure the entry is still valid. If the cache already has a default validity checker, this method should override this setting and use the one specified instead.
-
clear
public void clear()Description copied from interface:ICacheClear the entire cache.
-
clearKey
Description copied from interface:ICacheClears a specific entry in the cache.
-
keySet
Description copied from interface:ICacheReturns all the keys contained in this cache. Note this method might return keys for entries that are already invalid, so the result of calling
ICache.get(Object)for these keys might benull.
-