Package org.apache.ofbiz.widget.cache
Class AbstractCache
java.lang.Object
org.apache.ofbiz.widget.cache.AbstractCache
- Direct Known Subclasses:
ScreenCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear.protected <K,
V> UtilCache<K, V> Gets cache.getCacheName
(String widgetName) Gets cache name.Gets cache name prefix.protected UtilCache<WidgetContextCacheKey,
GenericWidgetOutput> getOrCreateCache
(String widgetName) Gets or create cache.void
Remove.
-
Constructor Details
-
AbstractCache
-
-
Method Details
-
remove
Remove.- Parameters:
widgetName
- the widget name
-
clear
public void clear()Clear. -
getCacheNamePrefix
Gets cache name prefix.- Returns:
- the cache name prefix
-
getCacheName
Gets cache name.- Parameters:
widgetName
- the widget name- Returns:
- the cache name
-
getCache
Gets cache.- Type Parameters:
K
- the type parameterV
- the type parameter- Parameters:
widgetName
- the widget name- Returns:
- the cache
-
getOrCreateCache
Gets or create cache.- Parameters:
widgetName
- the widget name- Returns:
- the or create cache
-