Class MemoryCacheHelper

  • java.lang.Object

  • public class MemoryCacheHelper
    extends java.lang.Object
    This class is used to be a utility class for memory cache.
    • Field Summary

      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright notice field.
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MemoryCacheHelper

        public MemoryCacheHelper()
    • Method Detail

      • updateMemoryCache

        public static void updateMemoryCache(InventoryAvailabilityMemoryCacheKey cacheKey,
                                             java.util.List listNouns,
                                             Invcnf inventoryConfiguration)
        Update the memory cache when the cache is expired. Usually calling this method after get the fresh result from DOM. This method is the same with updateMemoryCache(cacheKey, listNouns, inventoryConfiguration, false).
        cacheKey - key for the cache
        listNouns - list of nouns used to update the memory cache. Note, only the fisrt one is used.
        inventoryConfiguration - the cache configuration.