Package freemarker.cache
Class NullCacheStorage
java.lang.Object
freemarker.cache.NullCacheStorage
- All Implemented Interfaces:
CacheStorage,CacheStorageWithGetSize,ConcurrentCacheStorage
public class NullCacheStorage
extends Object
implements ConcurrentCacheStorage, CacheStorageWithGetSize
A cache storage that doesn't store anything. Use this if you
don't want caching.
- Since:
- 2.3.17
- See Also:
Configuration.setCacheStorage(CacheStorage)
-
Field Details
-
INSTANCE
- Since:
- 2.3.22
-
-
Constructor Details
-
NullCacheStorage
public NullCacheStorage()
-
-
Method Details
-
isConcurrent
public boolean isConcurrent()Description copied from interface:ConcurrentCacheStorageReturns true if this instance of cache storage is concurrently accessible from multiple threads without synchronization.- Specified by:
isConcurrentin interfaceConcurrentCacheStorage- Returns:
- true if this instance of cache storage is concurrently accessible from multiple threads without synchronization.
-
get
- Specified by:
getin interfaceCacheStorage
-
put
- Specified by:
putin interfaceCacheStorage
-
remove
- Specified by:
removein interfaceCacheStorage
-
clear
public void clear()- Specified by:
clearin interfaceCacheStorage
-
getSize
public int getSize()Always returns 0.- Specified by:
getSizein interfaceCacheStorageWithGetSize- Since:
- 2.3.21
-