Class RequestCachingConditionHelper
java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.cache.RequestCachingConditionHelper
Use this class to easily cache result of the condition evaluation for the current request. All context
independent condition should use this class to speed up JIRA. Results will be cached using
ServletRequest.setAttribute(String, Object)
.
Use ConditionCacheKeys
class to create cache keys.
- Since:
- v6.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
cacheConditionResultInRequest
(ConditionCacheKey cacheKey, com.google.common.base.Supplier<Boolean> supplier)
-
Constructor Details
-
RequestCachingConditionHelper
public RequestCachingConditionHelper()
-
-
Method Details
-
cacheConditionResultInRequest
public static boolean cacheConditionResultInRequest(@Nonnull ConditionCacheKey cacheKey, @Nonnull com.google.common.base.Supplier<Boolean> supplier)
-