Home » freemarker-2.3.13 » freemarker.cache » [javadoc | source]
public class: SoftCacheStorage [javadoc | source]

All Implemented Interfaces:

Soft cache storage is a cache storage that uses SoftReference objects to hold the objects it was passed, therefore allows the garbage collector to purge the cache when it determines that it wants to free up memory. 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.
 public SoftCacheStorage() 
 public SoftCacheStorage(Map backingMap) 
Method from freemarker.cache.SoftCacheStorage Summary:
clear,   get,   isConcurrent,   put,   remove
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.cache.SoftCacheStorage Detail:
 public  void clear() 
 public Object get(Object key) 
 public boolean isConcurrent() 
 public  void put(Object key,
    Object value) 
 public  void remove(Object key)