MCPcopy Create free account
hub / github.com/apache/freemarker / NullCacheStorage

Class NullCacheStorage

src/main/java/freemarker/cache/NullCacheStorage.java:63–85  ·  view source on GitHub ↗

A cache storage that doesn't store anything. Use this if you don't want caching. @see freemarker.template.Configuration#setCacheStorage(CacheStorage)

Source from the content-addressed store, hash-verified

61 * @see freemarker.template.Configuration#setCacheStorage(CacheStorage)
62 */
63public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…