A cache storage that doesn't store anything. Use this if you don't want caching. @see freemarker.template.Configuration#setCacheStorage(CacheStorage)
| 61 | * @see freemarker.template.Configuration#setCacheStorage(CacheStorage) |
| 62 | */ |
| 63 | public class NullCacheStorage implements ConcurrentCacheStorage { |
| 64 | |
| 65 | public boolean isConcurrent() { |
| 66 | return true; |
| 67 | } |
| 68 | |
| 69 | public Object get(Object key) { |
| 70 | return null; |
| 71 | } |
| 72 | |
| 73 | public void put(Object key, Object value) { |
| 74 | // do nothing |
| 75 | } |
| 76 | |
| 77 | public void remove(Object key) { |
| 78 | // do nothing |
| 79 | } |
| 80 | |
| 81 | public void clear() { |
| 82 | // do nothing |
| 83 | } |
| 84 | |
| 85 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…