Class CacheManager


  • public class CacheManager
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> getFromCache​(java.lang.String cacheKey)
      Retrieves a value from the cache if it exists and has not expired
      static void putInCache​(java.lang.String cacheKey, java.util.List<java.lang.String> value)
      Stores a value in the cache with the current timestamp
      • Methods inherited from class java.lang.Object

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

      • SUPPORTED_SUBMIT_ACTIONS_CACHE_KEY

        public static final java.lang.String SUPPORTED_SUBMIT_ACTIONS_CACHE_KEY
        Cache key for storing supported submit actions
        See Also:
        Constant Field Values
    • Constructor Detail

      • CacheManager

        public CacheManager()
    • Method Detail

      • getFromCache

        public static java.util.List<java.lang.String> getFromCache​(java.lang.String cacheKey)
        Retrieves a value from the cache if it exists and has not expired
        Parameters:
        cacheKey - The key to look up in the cache
        Returns:
        The cached List if found and valid, null if not found or expired
      • putInCache

        public static void putInCache​(java.lang.String cacheKey,
                                      java.util.List<java.lang.String> value)
        Stores a value in the cache with the current timestamp
        Parameters:
        cacheKey - The key under which to store the value
        value - The List value to cache