freemarker.cache
Class StrongCacheStorage
java.lang.Objectfreemarker.cache.StrongCacheStorage
- CacheStorage
public class StrongCacheStorage
extends java.lang.Object
Strong cache storage is a cache storage that simply wraps a
HashMap.
It holds a strong reference to all objects it was passed, therefore prevents
the cache from being purged during garbage collection.
This class is
NOT thread-safe. If it is accessed from multiple
threads concurrently, proper synchronization must be provided by the callers.
Note that
TemplateCache, the natural user of this class provides the
necessary synchronizations when it uses the class.
$Id: StrongCacheStorage.java,v 1.3 2003/09/22 20:47:03 ddekany Exp $ void | clear()
|
Object | get(Object key)
|
void | put(Object key, Object value)
|
void | remove(Object key)
|