org.riotfamily.common.web.view.freemarker
Class NoCacheStorage

java.lang.Object
  extended by org.riotfamily.common.web.view.freemarker.NoCacheStorage
All Implemented Interfaces:
freemarker.cache.CacheStorage

public class NoCacheStorage
extends Object
implements freemarker.cache.CacheStorage

FreeMarker CacheStorage that does not cache anything. Can be used to disable the template caching which can come in handy if you need to find memory leaks within your application.

Since:
6.4
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
NoCacheStorage()
           
 
Method Summary
 void clear()
           
 Object get(Object key)
           
 void put(Object key, Object value)
           
 void remove(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoCacheStorage

public NoCacheStorage()
Method Detail

clear

public void clear()
Specified by:
clear in interface freemarker.cache.CacheStorage

get

public Object get(Object key)
Specified by:
get in interface freemarker.cache.CacheStorage

put

public void put(Object key,
                Object value)
Specified by:
put in interface freemarker.cache.CacheStorage

remove

public void remove(Object key)
Specified by:
remove in interface freemarker.cache.CacheStorage