freemarker.cache
Class NullCacheStorage

java.lang.Object
  extended by freemarker.cache.NullCacheStorage
All Implemented Interfaces:
CacheStorage, ConcurrentCacheStorage

public class NullCacheStorage
extends java.lang.Object
implements ConcurrentCacheStorage

A cache storage that doesn't store anything. Use this if you don't want caching.

See Also:
Configuration.setCacheStorage(CacheStorage)

Constructor Summary
NullCacheStorage()
           
 
Method Summary
 void clear()
           
 java.lang.Object get(java.lang.Object key)
           
 boolean isConcurrent()
          Returns true if this instance of cache storage is concurrently accessible from multiple threads without synchronization.
 void put(java.lang.Object key, java.lang.Object value)
           
 void remove(java.lang.Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCacheStorage

public NullCacheStorage()
Method Detail

isConcurrent

public boolean isConcurrent()
Description copied from interface: ConcurrentCacheStorage
Returns true if this instance of cache storage is concurrently accessible from multiple threads without synchronization.

Specified by:
isConcurrent in interface ConcurrentCacheStorage
Returns:
true if this instance of cache storage is concurrently accessible from multiple threads without synchronization.

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface CacheStorage

put

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

remove

public void remove(java.lang.Object key)
Specified by:
remove in interface CacheStorage

clear

public void clear()
Specified by:
clear in interface CacheStorage