Class RequestCachingConditionHelper

java.lang.Object
com.atlassian.jira.plugin.webfragment.conditions.cache.RequestCachingConditionHelper

@ExperimentalApi public class RequestCachingConditionHelper extends Object
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 Details

    • RequestCachingConditionHelper

      public RequestCachingConditionHelper()
  • Method Details

    • cacheConditionResultInRequest

      public static boolean cacheConditionResultInRequest(@Nonnull ConditionCacheKey cacheKey, @Nonnull com.google.common.base.Supplier<Boolean> supplier)