Home » freemarker-2.3.13 » freemarker.cache » [javadoc | source]
freemarker.cache
public class: StrongCacheStorage [javadoc | source]
java.lang.Object
   freemarker.cache.StrongCacheStorage

All Implemented Interfaces:
    ConcurrentCacheStorage

Strong cache storage is a cache storage that simply wraps a Map . It holds a strong reference to all objects it was passed, therefore prevents the cache from being purged during garbage collection. This class is thread-safe to the extent that its underlying map is. The default implementation uses a concurrent map on Java 5 and above, so it is thread-safe in that case.
Method from freemarker.cache.StrongCacheStorage Summary:
clear,   get,   isConcurrent,   put,   remove
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.cache.StrongCacheStorage Detail:
 public  void clear() 
 public Object get(Object key) 
 public boolean isConcurrent() 
 public  void put(Object key,
    Object value) 
 public  void remove(Object key)