Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • localCache

        protected final UtilCache<java.lang.Object,​java.lang.Object> localCache
    • Constructor Detail

      • OfbizCacheStorage

        public OfbizCacheStorage​(java.lang.String id)
    • Method Detail

      • get

        public java.lang.Object get​(java.lang.Object key)
        Specified by:
        get in interface freemarker.cache.CacheStorage
      • put

        public void put​(java.lang.Object key,
                        java.lang.Object value)
        Specified by:
        put in interface freemarker.cache.CacheStorage
      • remove

        public void remove​(java.lang.Object key)
        Specified by:
        remove in interface freemarker.cache.CacheStorage
      • clear

        public void clear()
        Specified by:
        clear in interface freemarker.cache.CacheStorage