Package org.apache.ofbiz.webapp.ftl
Class OfbizCacheStorage
- java.lang.Object
-
- org.apache.ofbiz.webapp.ftl.OfbizCacheStorage
-
- All Implemented Interfaces:
freemarker.cache.CacheStorage
public class OfbizCacheStorage extends java.lang.Object implements freemarker.cache.CacheStorage
A custom cache wrapper for caching FreeMarker templates
-
-
Field Summary
Fields Modifier and Type Field Description protected UtilCache<java.lang.Object,java.lang.Object>
localCache
-
Constructor Summary
Constructors Constructor Description OfbizCacheStorage(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
java.lang.Object
get(java.lang.Object key)
void
put(java.lang.Object key, java.lang.Object value)
void
remove(java.lang.Object key)
-
-
-
Field Detail
-
localCache
protected final UtilCache<java.lang.Object,java.lang.Object> localCache
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interfacefreemarker.cache.CacheStorage
-
put
public void put(java.lang.Object key, java.lang.Object value)
- Specified by:
put
in interfacefreemarker.cache.CacheStorage
-
remove
public void remove(java.lang.Object key)
- Specified by:
remove
in interfacefreemarker.cache.CacheStorage
-
clear
public void clear()
- Specified by:
clear
in interfacefreemarker.cache.CacheStorage
-
-