Standard implementation of {@link ICacheManager}, returning configurable instances of {@link StandardCache} for each ofthe default caches defined at the cache manager interface.
Each cache allows the configuration of the following parameters:
Its name (will be displayed in logs).
Its initial size: the size the cache will be initialized with.
Its maximum size: the maximum size the cache will be allowed to reach. Some special values:
-1 means no limit in size.
0 means this cache will not be used at all (getXCache() will return null).
Whether the cache should use soft references or not (java.lang.ref.SoftReference). Using Soft References allows the cache to be memory-sensitive, allowing the garbage collector to dispose cache entries if memory is critical, before raising an OutOfMemoryError.
The name of the logger that will output trace information for the cache object. Configuring this allows a finer-grained log configuration that allows the more effective inspection of cache behaviour. If not specifically set, org.thymeleaf.TemplateEngine.cache.${cacheName} will be used.
An (optional) validity checker implementing {@link ICacheEntryValidityChecker}, which will be applied on each entry upon retrieval from cache in order to ensure it is still valid and can be used.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.