freemarker.cache
Interface CacheStorage
- ConcurrentCacheStorage
- MruCacheStorage, SoftCacheStorage, StrongCacheStorage
public interface CacheStorage
Cache storage abstracts away the storage aspects of a cache - associating
an object with a key, retrieval and removal via the key. It is actually a
small subset of the
java.util.Map
interface.
The implementations can be coded in a non-threadsafe manner as the natural
user of the cache storage,
TemplateCache
does the necessary
synchronization.
$Id: CacheStorage.java,v 1.2 2003/08/08 10:10:58 szegedia Exp $ void | clear()
|
Object | get(Object key)
|
void | put(Object key, Object value)
|
void | remove(Object key)
|
get
public Object get(Object key)
put
public void put(Object key,
Object value)
remove
public void remove(Object key)