freemarker.cache
Class SoftCacheStorage
java.lang.Object
freemarker.cache.SoftCacheStorage
- CacheStorage, ConcurrentCacheStorage
public class SoftCacheStorage
extends java.lang.Object
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.
$Id: SoftCacheStorage.java,v 1.4 2003/09/22 20:47:03 ddekany Exp $
SoftCacheStorage
public SoftCacheStorage()
SoftCacheStorage
public SoftCacheStorage(Map backingMap)