com.ibm.commerce.inventory.facade.server.helper

Class MemoryCacheHelper

  • java.lang.Object
    • com.ibm.commerce.inventory.facade.server.helper.MemoryCacheHelper


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

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

      • COPYRIGHT

        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).
        Parameters:
        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.