freemarker.cache

Interface CacheStorage

Known Implementing Classes:
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.
Version:
$Id: CacheStorage.java,v 1.2 2003/08/08 10:10:58 szegedia Exp $
Author:
Attila Szegedi

Method Summary

void
clear()
Object
get(Object key)
void
put(Object key, Object value)
void
remove(Object key)

Method Details

clear

public void clear()

get

public Object get(Object key)

put

public void put(Object key,
                Object value)

remove

public void remove(Object key)