Class CacheManager
- java.lang.Object
-
- com.adobe.cq.forms.core.components.util.CacheManager
-
public class CacheManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSUPPORTED_SUBMIT_ACTIONS_CACHE_KEYCache key for storing supported submit actions
-
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 expiredstatic voidputInCache(java.lang.String cacheKey, java.util.List<java.lang.String> value)Stores a value in the cache with the current timestamp
-
-
-
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
-
-
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 valuevalue- The Listvalue to cache
-
-