freemarker.cache
Interface CacheStorage

All Known Subinterfaces:
ConcurrentCacheStorage
All 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 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()
           
 java.lang.Object get(java.lang.Object key)
           
 void put(java.lang.Object key, java.lang.Object value)
           
 void remove(java.lang.Object key)
           
 

Method Detail

get

java.lang.Object get(java.lang.Object key)

put

void put(java.lang.Object key,
         java.lang.Object value)

remove

void remove(java.lang.Object key)

clear

void clear()