Class CacheUtil
java.lang.Object
com.ssgllc.fish.service.util.published.CacheUtil
-
Constructor Summary
ConstructorsConstructorDescriptionCacheUtil
(com.ssgllc.fish.service.cache.AbstractAppCacheRefreshMessageProducer appCacheRefreshMessageProducer, com.ssgllc.fish.service.cache.AbstractAppCacheMessageListener abstractAppCacheMessageListener) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
refreshCache
(String cacheName) Sends a message to refresh the specified application cache.static void
refreshCacheSync
(String cacheName) Refresh the specified application cache.
-
Constructor Details
-
CacheUtil
public CacheUtil(com.ssgllc.fish.service.cache.AbstractAppCacheRefreshMessageProducer appCacheRefreshMessageProducer, com.ssgllc.fish.service.cache.AbstractAppCacheMessageListener abstractAppCacheMessageListener)
-
-
Method Details
-
refreshCache
Sends a message to refresh the specified application cache.- Parameters:
cacheName
- The name of the cache to refresh. Valid options include:
- "Permission"
- "EntityConfig"
- "ValueSet"
- "User"
- "Process"
- "NickName"
- "FrontendIndex"
- "PrintTemplate"
- "Custom"
- "ALL"
Groovy example:
return cacheUtil.refreshCache("Custom")
Note: This method triggers an asynchronous cache refresh via messaging and does not return a value.
-
refreshCacheSync
Refresh the specified application cache.- Parameters:
cacheName
- The name of the cache to refresh. Valid options include:
- "Permission"
- "EntityConfig"
- "ValueSet"
- "User"
- "Process"
- "NickName"
- "FrontendIndex"
- "PrintTemplate"
- "Custom"
Groovy example:
return cacheUtil.refreshCacheSync("EntityConfig")
Note: This method triggers synchronous cache refresh. Does not support refreshing ALL caches.
-